Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread alex.tomes
I also have problems with this in 1.2 beta but I'm thinking it's because I'm setting the session from an ajax call, that's the last thing I've changed to see if it works. in 1.2 alpha it worked great, not it doesn't anymore :*( --~--~-~--~~~---~--~~ You received thi

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread [EMAIL PROTECTED]
I've had session dropping problems with images and request action, I found setting your security level to low in /app/config/core.php will help. Upgrading to the 1.2 beta seemed to fix my problems at high security Dave On Jan 16, 7:36 am, BravoFoxtrot <[EMAIL PROTECTED]> wrote: > Has anyone els

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-16 Thread BravoFoxtrot
Has anyone else had this problem? Or more importantly, has anyone solved this problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.co

Sessions, Webserivce and Ajax

2008-01-15 Thread lordG
): The Sessions are not maintainable across webservices, and in particular ajax calls. Is there a reason for this? I have ajax calls that run over a logged in session state, but beacuse the $controller->params['bare'] = 1, the session does not get started and hence I can't therefor c

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
ok... does anyone know why the following the the router are being deprecated? 00503 /** 00504 * Deprecated 00505 * 00506 */ 00507 $_this->connect('/bare/:controller/:action/*', array('bare' => '1')); 00508 $_this->connect('/ajax/:controller/:acti

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
Ok, traced it down to the bare variable and these lines in the session component: 00295 function __start(){ 00296 if ($this->__started === false) { 00297 if ($this->__bare === 0) { 00298 if (!$this->id() && parent::start()) { 00299 $this

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
I mean wouldn't On Jan 15, 11:05 am, lordG <[EMAIL PROTECTED]> wrote: > Ok, yeah, the print_r would work as the session has not been started > yet. > > However, there does appear to be a difference between when sessions > start for normal

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
Ok, yeah, the print_r would work as the session has not been started yet. However, there does appear to be a difference between when sessions start for normal requests and ajax requests. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Sessions, redirects and setFlash

2008-01-15 Thread lordG
Does anyone have any further suggestions on this? I cake 1.1 my ajax calls would work 100% with a session security set to medium. With Cake 1.2 however they are no longer working. It seems to have something to do with the $_SESSION array being undefined when the response is received. Shouldn't

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread Gráinne O'Neill
AIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > Hope you are all having enjoyable weekends... I'm certain I'm > missing > > > > something obvious - but I have spent days trying to figure out what > - > > > > so I thought

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread candesprojects
27;m missing > > > something obvious - but I have spent days trying to figure out what - > > > so I thought I'd ask. > > > > My sessions are being dropped when or if I just go to a new page. > > > > I am using beta 1.2 > > > I checked for whit

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread djiize
; wrote: > > > Hi, > > > Hope you are all having enjoyable weekends... I'm certain I'm missing > > something obvious - but I have spent days trying to figure out what - > > so I thought I'd ask. > > > My sessions are being dropped when or if I

Re: sessions being dropped on redirect or whenever i call a new page

2008-01-14 Thread wirtsi
s... I'm certain I'm missing > something obvious - but I have spent days trying to figure out what - > so I thought I'd ask. > > My sessions are being dropped when or if I just go to a new page. > > I am using beta 1.2 > I checked for whitespace outside of my

Re: Sessions, redirects and setFlash

2008-01-14 Thread lordG
stom session data they may have been set > > after the destroy call. > > > > Does the redirect do anything with regards to the Sessions if they > > have been just been destroy'd and renew'd? > > > > I noticed the session_write_close call, but that just loc

Re: Sessions, redirects and setFlash

2008-01-13 Thread Chris Hartjes
> session is clean of any custom session data they may have been set > after the destroy call. > > Does the redirect do anything with regards to the Sessions if they > have been just been destroy'd and renew'd? > > I noticed the session_write_close call, but that

Re: Sessions, redirects and setFlash

2008-01-13 Thread Gráinne O'Neill
hen it gets to the redirect page, the flash no longer exists and the > session is clean of any custom session data they may have been set > after the destroy call. > > Does the redirect do anything with regards to the Sessions if they > have been just been destroy'd and renew

Sessions, redirects and setFlash

2008-01-13 Thread lordG
s the redirect do anything with regards to the Sessions if they have been just been destroy'd and renew'd? I noticed the session_write_close call, but that just locks the session and shouldn't affect the session data. Very weird. G --~--~-~--~~~---~--~---

sessions being dropped on redirect or whenever i call a new page

2008-01-13 Thread Grainne
Hi, Hope you are all having enjoyable weekends... I'm certain I'm missing something obvious - but I have spent days trying to figure out what - so I thought I'd ask. My sessions are being dropped when or if I just go to a new page. I am using beta 1.2 I checked for whitespac

Re: cake 1.18 - has it changed the behavior of Sessions?

2007-12-12 Thread simon
I've experienced the same bug, and changing from high to medium security seems to have solved it. I'm doing a lot of AJAX stuff in the background, is that what is causing it? Or this a general bug with security set to high? Simon On Nov 21, 2:29 pm, keymaster <[EMAIL PROTECTED]> wrote: > I have

Re: Problem sessions

2007-12-10 Thread inver
solvent, problem in cake installation, cake directory out of virtualhost. I change my index.php in webroot directory. Thanks. On 10 dic, 16:31, powtac <[EMAIL PROTECTED]> wrote: > What does it mean exactly "but my data session lost"? > Example code? --~--~-~--~~~---~-

Re: Problem sessions

2007-12-10 Thread powtac
What does it mean exactly "but my data session lost"? Example code? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Problem sessions

2007-12-10 Thread inver
Hello, before a write in this group I read all literature about sessions problem in 1.1.18.5850 version. Well, I change in config.php the CAKE_SECURITY to medium, but my data session lost, this happen in 'database', 'cake' and 'php' mode for session. checkout my cake

Re: Arrays in Sessions

2007-11-25 Thread Grant Cox
// get the current basket $basket = $this->Session->read('basket'); if ( empty($basket) ){ $basket = array(); } // modify it how you like $basket[] = $new_product; // save back to session $this->Session->write( 'basket', $basket ); On Nov 26, 8:08 am, ohneworte <[EMAIL PROTECTED]> wrote: >

Arrays in Sessions

2007-11-25 Thread ohneworte
Good Evening! I want to create a "basket" for a simple shop. The chosen product should be stored into a session-variable until the checkout procedure. I am asking if it (and how!) it is possible to store an array in a cake-session? As an Example: the user puts the first object into his basket: $

cake 1.18 - has it changed the behavior of Sessions?

2007-11-21 Thread keymaster
I have an app which has been working steadily for almost a year, through several cake releases, up to and including cake 1.17. When I upgrated to cake 1.18, with no changes to the app, all of a sudden session variables are disappearing during some (not all) of my ajax requests. The call to $this-

Re: help with sessions and frames

2007-11-15 Thread Grant Cox
Just have some javascript on your login page that forces it to break out of any frames. Something like: if (top.location != location) { top.location.href = document.location.href ; } On Nov 15, 5:30 pm, chowdary <[EMAIL PROTECTED]> wrote: > thank you. > > I have put the session timeout

Re: help regarding frames with sessions

2007-11-15 Thread chowdary
thankyou. if u dont mind can u explain me clearly how can we solve this problem by using java script.. plz help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: help regarding frames with sessions

2007-11-15 Thread Grant Cox
Please stick to a single message thread - I have replied to your other one. On Nov 15, 7:23 pm, chowdary <[EMAIL PROTECTED]> wrote: > hi, > > I am using frames in my website,main application links are present on > the top of page above mainframe, in main window. These links have > target=mainfra

help regarding frames with sessions

2007-11-15 Thread chowdary
hi, I am using frames in my website,main application links are present on the top of page above mainframe, in main window. These links have target=mainframe, thus opening respective pages in mainframe. I have put the session timeout period on each page so if some user remains inactive for 10 mi

Re: help with sessions and frames

2007-11-14 Thread chowdary
thank you. I have put the session timeout period on each page so if some user remains inactive for 10 minutes (all webforms in main frame), he will be redirected to login.php page through header. Problem is that, the login.php page will certainly be opening in main frame, thus the links in m

Re: help with sessions and frames

2007-11-14 Thread Grant Cox
tent. On Nov 15, 4:38 pm, chowdary <[EMAIL PROTECTED]> wrote: > hi, > > iam using frames in my website, there are 2 frames in site. when > sessions are expired the login page is displaying in the main frame, > but the other frame as it is in above. why the above fram

help with sessions and frames

2007-11-14 Thread chowdary
hi, iam using frames in my website, there are 2 frames in site. when sessions are expired the login page is displaying in the main frame, but the other frame as it is in above. why the above frame is not disappearing? is it means sessions are not expired in the above frame? please help me

Re: Sessions

2007-11-12 Thread joost de keijzer
Hi Beno, Is CAKE_SECURITY is set to "high" in your 1.1.18 apps core.php? Setting it to "medium" will then probaply fix your problem. Also see https://trac.cakephp.org/ticket/3507 . On Nov 12, 1:47 pm, Beno <[EMAIL PROTECTED]> wrote: > hi I have this problem i do not know if it is a bug in new v

Sessions

2007-11-12 Thread Beno
hi I have this problem i do not know if it is a bug in new version of cake. After i upgrated from preveious version cake to version 1.1.18.5850 the seesions are sometime droped. A tried the older version and everithnik is ok. In change log are same updates about seesion. Have sombody the same expe

Re: Manual loading of sessions using a session id in query string

2007-10-16 Thread digifish
Thanks! This is exactly what I was looking for to work SWFupload while verifying someone as being logged it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cak

Re: Manual loading of sessions using a session id in query string

2007-10-15 Thread shan sinha
Never mind everyone.. I solved this. The following code snippet works in my controller logic: list($cookieName, $cookieValue) = split("=", $this->params["url"]["cookie"]); session_destroy(); session_id($cookieValue);

Manual loading of sessions using a session id in query string

2007-10-15 Thread shan sinha
Hi folks- I am using a component for uploading files that does not (unfortunately) pass HTTP headers back up to the server when posting files. As a result, I am unable to retrieve session variables on handling the file uploads. Instead, the post of the files is being done through a new session.

Re: Using PHP session with Cake sessions

2007-10-09 Thread CakeMan
Thanks for all of you replies. if i want to use myfolder's session in cakephp files. Then what should i do ? Thanks again !! On Oct 10, 2:59 am, Travis Cline <[EMAIL PROTECTED]> wrote: > On Oct 9, 3:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Cake creates a new session. Check

Re: Using PHP session with Cake sessions

2007-10-09 Thread Travis Cline
On Oct 9, 3:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Cake creates a new session. Check PHP session_name('identifier') > function. > > Check config/core.php file. You will find CAKE_SESSION_STRING > constant. Copy the parameter into application script in "myfolder" > like this: > ses

Re: Using PHP session with Cake sessions

2007-10-09 Thread [EMAIL PROTECTED]
; > Array ( [User] => Array ( [id] =>10 [lname] => r [fname] => r [mname] > => [email] => [EMAIL PROTECTED] [phone] => [verified] => 1 ) ) > > we are using GLOBAL variable SESSION for same domain, so i think > print_r($_SESSION) should show the same values, sa

Using PHP session with Cake sessions

2007-10-09 Thread CakeMan
nt_r($_SESSION) should show the same values, same session arrays in both the files ( myfolder's files and cakephp's file ) Please help me out to sort out this problem. I want to access myfolder's created sessions in cakephp's sessions. It's urgent !! Thanks --~--~-

Re: Problem with Sessions Component

2007-09-18 Thread Chris Hartjes
On 9/17/07, Matt <[EMAIL PROTECTED]> wrote: > > I'm having trouble specifically with writing once to a session. As > soon as I write once to a session every page in my cake app goes > blank. > > I've spent way too much time with this session component. I don't know > how to approach this problem a

Re: Problem with Sessions Component

2007-09-17 Thread Matt
> > default layout I created. I checked my apache error log and nothing > > shows up there. > > > This is what I have tried so far: > > -all the different types of sessions (i.e. database, php and cake) and > > no luck. > > -different servers (both with PHP5 an

Re: Problem with Sessions Component

2007-09-17 Thread kanian77
hat I have tried so far: > -all the different types of sessions (i.e. database, php and cake) and > no luck. > -different servers (both with PHP5 and Sessions installed) (one is > dreamhosts, a virtual server and my own personal box > -setting the debug level to every possible number &g

Problem with Sessions Component

2007-09-16 Thread Matt
e tried so far: -all the different types of sessions (i.e. database, php and cake) and no luck. -different servers (both with PHP5 and Sessions installed) (one is dreamhosts, a virtual server and my own personal box -setting the debug level to every possible number -tested the PHP sessions with othe

Sessions without cookies?

2007-08-28 Thread Steve Boyd
Hi, wondering how you go about using the session components when you have users who have cookies that are turned off Using cake 1.1.xx Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To p

Re: Efficiency of database driven sessions

2007-08-15 Thread Martin Schapendonk
2007/8/14, Pillow <[EMAIL PROTECTED]>: > However, it also have disadvantages - each $this -> Session -> read/ > write(); equals one database query. I use sessions very often, so > number of queries to database on every request has risen rapidly. Just give it a try.

Re: Efficiency of database driven sessions

2007-08-14 Thread Marcus
> simplest way of doing it is counting sessions active for instance for > last 3 minutes. > > I've tried using CAKE_SESSION_SAVE set to cake, and counting files in / > app/tmp/sessions/ which last modification time was greater than > time()-3*60. But it was very slow because o

Efficiency of database driven sessions

2007-08-14 Thread Pillow
Hi, I'm going to implement some online users counter on my website. The simplest way of doing it is counting sessions active for instance for last 3 minutes. I've tried using CAKE_SESSION_SAVE set to cake, and counting files in / app/tmp/sessions/ which last modification time was gr

Re: Deactivate Sessions Completly

2007-07-31 Thread Grant Cox
define('AUTO_SESSION', false); in your app/config/core.php will stop them from being automatically started. On Jul 31, 6:43 pm, Freight <[EMAIL PROTECTED]> wrote: > Hi, > > I want completly deactivate the session functionalety from cake so > that no session is started at all. I tried to comment

Deactivate Sessions Completly

2007-07-31 Thread Freight
Hi, I want completly deactivate the session functionalety from cake so that no session is started at all. I tried to comment out CakeSession and SessionComponent, however it hasnt the right effect. Has anyone a clue, what to do? Thanks Freight --~--~-~--~~~---~--~-

Re: Using Cake with Zend Session or Cake without any Sessions?

2007-07-27 Thread Chris Hartjes
On 7/27/07, Freight <[EMAIL PROTECTED]> wrote: > > Can I use Cake without any Session, even without Zend-Session? > Did you read the section in the manual about the Session Component? http://manual.cakephp.org/chapter/session I suggest you try this experiment: 1) go into config/core.php and co

Re: Using Cake with Zend Session or Cake without any Sessions?

2007-07-27 Thread Freight
Can I use Cake without any Session, even without Zend-Session? On 26 Jul., 22:10, gwoo <[EMAIL PROTECTED]> wrote: > Add Zend to your vendors directory. Write your own SessionComponent. > use vendor('Zend/Session', 'Zend/Auth'); or whatever the path to the > libs are. Create the methods you need l

Re: Using Cake with Zend Session or Cake without any Sessions?

2007-07-26 Thread gwoo
Add Zend to your vendors directory. Write your own SessionComponent. use vendor('Zend/Session', 'Zend/Auth'); or whatever the path to the libs are. Create the methods you need like read, write, destroy. --~--~-~--~~~---~--~~ You received this message because you a

Using Cake with Zend Session or Cake without any Sessions?

2007-07-26 Thread Freight
to deactivate all the CakeSession-Functionality. Can I deactivate Sessions in Cake or are they designed in the core? So can I use Cake without any session-handling? Thanks Freight --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Newbie Sessions ?

2007-07-06 Thread Sergei
Just store an array in the session variable. When you need to add item, read array, add, and save it again. On 6 июл, 18:51, r557 <[EMAIL PROTECTED]> wrote: > Well how is it done then in a shopping cart situation where you need a > collection of items? --~--~-~--~~~

Re: Newbie Sessions ?

2007-07-06 Thread r557
Well how is it done then in a shopping cart situation where you need a collection of items? On Jul 5, 10:06 pm, citrus <[EMAIL PROTECTED]> wrote: > When you add values to the session, the old one will be overwritten > (if exists) > > On Jul 6, 6:35 am, r557 <[EMAIL PROTECTED]> wrote: > > > Creati

Re: Newbie Sessions ?

2007-07-05 Thread citrus
When you add values to the session, the old one will be overwritten (if exists) On Jul 6, 6:35 am, r557 <[EMAIL PROTECTED]> wrote: > Creating a Shopping Cart, and am wondering if when you add values to a > session, does it overwrite the current contents in the session? > > For example: > >

Newbie Sessions ?

2007-07-05 Thread r557
Creating a Shopping Cart, and am wondering if when you add values to a session, does it overwrite the current contents in the session? For example: $this->Session->write('ShoppingCart.id', $id); $this->Session->write('ShoppingCart.name', $name); $t

Re: Please oh please, at my witt's end. [Sessions]

2007-06-28 Thread kerkor
ially the controllers) multiple times > > and I have changed all occurrences of the previous site's url. > > My problem, is that it seems, that new sessions are being created for > > no reason. Most of the time the application behaves as it should. > > This is why i

Re: Please oh please, at my witt's end. [Sessions]

2007-06-28 Thread Jonathan Langevin
build a new front-end for > the second site. > I have copied the files (especially the controllers) multiple times > and I have changed all occurrences of the previous site's url. > My problem, is that it seems, that new sessions are being created for > no reason. Most of the

Please oh please, at my witt's end. [Sessions]

2007-06-28 Thread kerkor
l. My problem, is that it seems, that new sessions are being created for no reason. Most of the time the application behaves as it should. This is why it is so confusing. My database stores orders by the session id until the user logs in and then the programming sets the session to null and ent

Re: CakePHP sessions performance

2007-06-08 Thread Dinh
To improve session performance, you may try Sharedance: http://sharedance.pureftpd.org/ instead of Memcached. Sharedance requires less memory than the counterpart. MCache ( http://www.mohawksoft.org/?q=node/8) is also a good choice too. pcdinh On 6/8/07, Joshua Benner <[EMAIL PROTECTED]> wrote: >

Re: CakePHP sessions performance

2007-06-07 Thread Joshua Benner
Chris Hartjes wrote: > On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Thanks for the info. >> My assumption (unfounded apparently) was that accessing data in the >> session >> when stored in the database would require round trips to the database >> which is slower than accessing t

Re: CakePHP sessions performance

2007-06-07 Thread Chris Hartjes
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks for the info. > My assumption (unfounded apparently) was that accessing data in the > session > when stored in the database would require round trips to the database > which is slower than accessing the local disk. > > Thanks again,

Re: CakePHP sessions performance

2007-06-07 Thread [EMAIL PROTECTED]
when it comes to performance? > > I would assume database is slower, but is it significant? > > Why are you worried about "session performance"? It has been my > experience with sessions that the performance issue is usually the > amount of stuff you are stuffing in the s

Re: CakePHP sessions performance

2007-06-06 Thread Chris Hartjes
u worried about "session performance"? It has been my experience with sessions that the performance issue is usually the amount of stuff you are stuffing in the session, and the mechanism for how you store it is secondary. I worked on a project with 10+ application servers talking to a cent

CakePHP sessions performance

2007-06-06 Thread [EMAIL PROTECTED]
Hello, Anybody has any insight into the different type of session storage (cake vs. php vs. database) when it comes to performance? I would assume database is slower, but is it significant? Thank you. --~--~-~--~~~---~--~~ You received this message because you

Re: Sessions Issue

2007-05-30 Thread djiize
So I don't know > > if its CakePHP issue or its WAMP configuration issue. Let me know. > > Sorry, no experience with WAMP at this end. I don't know of any > tried-and-true methods of debugging sessions. There must be other > people from the WAMP crowd on this list who

Re: Sessions Issue

2007-05-30 Thread Chris Hartjes
't know > if its CakePHP issue or its WAMP configuration issue. Let me know. Sorry, no experience with WAMP at this end. I don't know of any tried-and-true methods of debugging sessions. There must be other people from the WAMP crowd on this list who can help you out. Good to see that

Re: Sessions Issue

2007-05-29 Thread Ketan Patel
Hi Chris, The debug is set to 2. The set up is WAMP where I experience this issue. However, just to make sure that this happens on Linux box or not, I booted into Linux and it works fine in linux. So I don't know if its CakePHP issue or its WAMP configuration issue. Let me know. Ketan On May 29

Re: Sessions Issue

2007-05-29 Thread Chris Hartjes
On 5/29/07, Ketan Patel <[EMAIL PROTECTED]> wrote: > > When the form is posted, in expected input, I am not able to see the > session variable alpha which I had set during the intial view. Can > someone point me in right direction what's wrong? > > I know that session variable is set because when

Sessions Issue

2007-05-29 Thread Ketan Patel
I am using CakePHP 1.2.0.5146. I am trying to write a session variable using $this->Session->write('alpha',15); in users_controller.php for "add" action as follows: function add() { $success = false; if(!empty($this->data)) { $this->cleanUpFields();

Re: Java applets and sessions

2007-05-28 Thread [EMAIL PROTECTED]
I've had a similar issue with Rad Upload (an upload applet), and I didn't find any other solution than disabling the user agent check. So in /cake/libs/session.php I changed: if ($this->_userAgent == $this->read("Config.userAgent") && $this- >time <= $this->read("Config.time")) to if ($this->ti

Java applets and sessions

2007-05-28 Thread Dave J
Hi everyone, Has anyone had any success in embedding Java applets in their Cake pages while still successfully holding on to a session? The reason is I'm using the JClientUpload applet (so people can upload files simply by dragging files onto the webpage). I've done some research and this has al

how cache handle sessions ?

2007-05-23 Thread szinspire
imagine, if we've a sql query like this: select * from shops where city=??? ??? is a result read from one of the session's "city" var, clients may come from different cities, how cake's cache handle this issue? if I set cache on, will the cache work? or will the cache be confused? thanks so mu

Re: Sessions on production server with cookies disabled

2007-05-22 Thread f.
Well, I'll answer my question... Since I didn't want to hack the core files, i put this in my app_controller: function redirect($url, $status = null, $exit = false) { if (!empty($_REQUEST[CAKE_SESSION_COOKIE])) { $url .= (strpos($url, '?') !== false) ? '&':'?';

Sessions on production server with cookies disabled

2007-05-21 Thread f.
Hi group, an app I developed (successfully) is about to go in production on a server that doesn't support cookies (dont ask...;) Some sections require authentication (modified dAuth), everything works fine in development. The server appends the CAKEPHP SID nicely to all links and even adds hidden

class object in sessions

2007-05-11 Thread Michael Augustyniak
When I will store the class object in session works only in the same method like: can not read the object from other methods in the same controller. function index() { $this -> Session -> write('construct',new TextConstruct($this->params['data']['Email']['body']) ); $this->set('WordsAsStyle',

othAuth & Expired Sessions

2007-05-02 Thread Tane Piper
when they first hit the page - when you hit refresh it shows you page and the user is logged out. I'm using sessions in the database. Has anyone experienced this already? Tane --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Sessions not carying over?

2007-05-02 Thread Enchy
I finally got it working. Cakephp was deleting my session everytime I went to login page somehow. I dont have delete session in the controller class UsersController extends AppController { var $name = 'Users'; var $scaffold; function index() { } function login()

Re: Sessions not carying over?

2007-05-02 Thread Enchy
Ok this is my login page: /admin/index.php/users/login When I redirect to: /admin/index.php/users/index I can print the session onscreen, so this means its working. But the moment I goto /admin/ The root of the site then the session does not appear. Anybody got a solution for this? --~--~--

Re: Sessions not carying over?

2007-05-01 Thread Enchy
Ok here is my problem. This is my login controller: if($success) { $this->Session->write('User', $someone['User']); $test = $this->Session->check('User'); $this->Session->setFlash("bs $test"); //$this->redirect('../');

Sessions not carying over?

2007-05-01 Thread Enchy
Hi I have created to controllers and they use two different tables each. These two controllers are basically copies of each other. I logged in and it goes to the first controller but when I go to second controller it says im not logged in anymore. Im using phpgacl: [code] var $gacl = array(

Re: Getting Different Sessions for HTTPS and HTTP

2007-04-18 Thread [EMAIL PROTECTED]
I found the problem - some of my redirects ended up at domainname.com.au instead of WWW.domainname.com.au - so I ended up with one session for www.dmainname.com.au and another one for domainname.com.au On Apr 19, 11:50 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a site where som

Getting Different Sessions for HTTPS and HTTP

2007-04-18 Thread [EMAIL PROTECTED]
I have a site where some sections are accessed via HTTPS ( login, payments ) while the rest is accesses via HTTP. Currently I have a problem where I get a different session data for each protocol. On my windows development environment everything works fine - when using either HTTPS or HTTP cake r

Re: sessions in database

2007-04-05 Thread majna
or $result = eval("return \$_SESSION;"); pr($result); On Apr 4, 11:49 am, "jyrgen" <[EMAIL PROTECTED]> wrote: > here's a solution i found on php.net. > > it's definitely not smart, but works ok. > > $temp = mysql_query('SELECT *

Re: sessions in database

2007-04-04 Thread jyrgen
Hi Majna, it's not that i want to check for expiration, but rather if a user is already logged in. (see above) i cannot simply test for sth. like $this->Session->read('logged_in') because this refers to the current session, which i am just about to construct... therefore i had to search all ex

Re: sessions in database

2007-04-04 Thread majna
There is "$db->value(time())" wich fetch value from data field in session table... from libs/session.php: $db =& ConnectionManager::getDataSource('default'); $table = $db->fullTableName(CAKE_SESSION_TABLE); $db->execute("DELETE FROM " . $db->name($table) . " WHERE " . $db- >name($table.'.expires'

Re: Sessions

2007-04-04 Thread Olwen Williams
I go to a different screen the session id has changed (and I lose my session data). I have tried using php sessions, cake sessions, database sessions and a method I found suggested for creating your own session handling in this thread, http://groups.google.com/group/cake-php/browse_frm/thread/ada15a

Re: sessions in database

2007-04-04 Thread jyrgen
here's a solution i found on php.net. it's definitely not smart, but works ok. $temp = mysql_query('SELECT * FROM sessions'); while ($row = mysql_fetch_array($temp)){ $variables = array( ); $a = preg_split( "/(\w+)\|/", $row[&#

sessions in database

2007-04-04 Thread jyrgen
howdy, how do you check if a user with a particular id is already logged in ? it is that i want to prevent people from loggin in twice. of course i could search the sessions table, but i'm stuck with the fact that all session vars are serialized. has anybody come across this ? thank

Sessions

2007-04-03 Thread Olwen Williams
Like other people I have had problems with sessions. I have tried various solutions that have been suggested on the list, and the session id keeps changing (out putting the session id at the end of index.php). It did start working, but has now stopped again. I have not changed (consciously

Integrate cakephp with existing app sessions

2007-04-03 Thread scoby
cess the vars populated by my old script But I can't seem to access them at all I saw a note on the type of sessions possible with cake: cake database and php Aha! I'll change it to php so that they are using the same sessions but this appears to be the default... and I still can't ac

Re: sessions in cake db _gc

2007-03-26 Thread jyrgen
hello all, can anybody help please ? thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Problems with sessions and cookies

2007-03-25 Thread Anton B.
Does nobody have such issues? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PRO

Re: sessions in cake db _gc

2007-03-24 Thread jyrgen
hi, thanks for pointing my to this, you're right, there seems to be no solution. i wouldn't mind writing a custom handler, which erases expired session entries. but i need something to start with... still i'm confused about the fact, that the cake session handling behaves different on different

Problems with sessions and cookies

2007-03-24 Thread Anton B.
Hi all! I have strange problems with sessions and cookies. It works different in different browsers. Look at this controller: class PagesController extends AppController{ var $autoRender = false; var $components = array('Cookie', 'Session'); var $cookieName =

Re: sessions in cake db _gc

2007-03-23 Thread majna
There is thread : http://groups.google.com/group/cake-php/browse_thread/thread/2a6120727e5e7745/5718c2fec805b063?lnk=gst&q=session&rnum=6#5718c2fec805b063 read this, i have same problem, but there is no solution. :( is it cake bug? On Mar 23, 12:18 pm, "jyrgen" <[EMAIL PROTECTED]> wrote: > Hi,

Re: sessions in cake db _gc

2007-03-23 Thread jyrgen
Hi, i've set this define('CAKE_SESSION_SAVE', 'database'); in app/config/core.php (there is no file "config.php" in app/config/ ) , which made me believe that the entirely session handling is leftover to cake. the oldest session is almost two weeks old... but never on my local server ...stra

<    1   2   3   4   5   >