Forum Moderators: phranque

Message Too Old, No Replies

Session id is not expiring in cakephp

         

arunj82

5:45 am on Nov 24, 2008 (gmt 0)

10+ Year Member



Hi All,

I am doing a project in cakephp. What my problem is when ever i close my browser and when i reopen it, session id(i.e userAgent) in cakephp is not changing. I want to use this session id for tracking visitor counts. But when i close the browser and open again, session id is not changing...
I get the session id using this

print_r($this->Session->read());

in AppController. Any help would be much appreciated...

Thanks in Advance...

coopster

2:03 pm on Dec 1, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I'm not familiar with the framework, never used it. However, you need to be certain that the session is being destroyed on the server side in the PHP code, your cakephp framework code. Then, you can also check the way the session cookie is being set and make sure it is being destroyed or set to expire properly.