Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Session id is not expiring in cakephp

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

New User

10+ Year Member

joined:Aug 21, 2008
votes: 0

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


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

Thanks in Advance...

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


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 3

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.