I stored data in ‘session’ , but the next request from the same
machine and browser is not able to access that info. cookies is turned
on in my browser.(im using IE6).
I’m using database for session storage. i noticed that a new session
is being created for each request that comes from the browser. this
should be the reason why im not able to retrieve my data, in the next
request.
But y so? why a new session is being vreated for every request from
the same browser, same machine, same domain?
But y so? why a new session is being vreated for every request from
the same browser, same machine, same domain?
Any chance there is a call to “reset_session” in your code? That would
do it if that is getting hit each time. Also, somewhat along a similar
line, the user authentication plugins call reset_session where needed.
If you are using one of them and calling the wrong method at the wrong
time you might be hitting that call to reset_session.
Ok, one last thought. What is the expires field of the cookie being set
to? Is it somehow getting set to a time in the past? Even if it’s being
set to the current time, that would cause it to expire before the next
request.
-Bill
Unni wrote:
Do you have cookies disabled in your browser?
William P.
–
Sincerely,
William P.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.