#5744: Sessions get scrambled
-------------------------------+--------------------------------------------
Reporter: dgrekov | Type: Bug
Status: new | Priority: High
Milestone: 1.2.x.x | Component: Session
Version: RC3 | Severity: Major
Keywords: | Php_version: PHP 5
Cake_version: 1.2.0.7692 RC3 |
-------------------------------+--------------------------------------------
=== What I did ===
called $this->Session->write('User.id',$user_id);
then called $this->Session->read('User.id'); on the next page.
After navigation the site for a bit or reloading the page, the session
starts getting escaped and scrambled.
=== Results ===
dumping out the session variable i get this:
{{{Config"Config":"\"Config\":\"1Config/\":/\"//\"Config//\"://\"1Config///\":///\"////\"Config////\":////\"1Config/////\"://///\"//////\"Config//////\"://////\"1Config///////\":///////\"////////\"Config////////\":{////////\"userAgent////////\":////////\"////////\",////////\"time////////\":1226513892,////////\"rand////////\":1617822794,////////\"timeout////////\":10}///////\"//////\"/////\"////\"///\"//\"/\"\""
User"User":"\"User\":\"/\"User/\":/\"//\"User//\"://\"///\"User///\":///\"////\"User////\":////\"1User/////\"://///\"//////\"User//////\":{//////\"id//////\":1}/////\"////\"///\"//\"/\"\""}}}
After is happens once, every refresh adds more slashes and in effect
escapes the session string one more time.
=== How to reproduce ===
- Go to [http://reporting.tiadev.ky]
- Note the session value using the dev toolbar in top right corner
- refresh or click around
- You can also login using rwarther / rwarther
--
Ticket URL: <https://trac.cakephp.org/ticket/5744>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---