hi everyone still i have confusion with session and cookies.can any one please clarify the difference b/w cookies and session and what is the main use of session an cookies?
cookies and session
Collapse
X
-
Hi ilayacute,
Please don't double post your questions - it is against the rules laid out in the Posting Guidelines. If you want to make changes to your question after posting it you can do so up to an hour afterwards using the Edit button.
A Session variable's lifespan is limited to the length of a users session. When they first log in their session begins until either they log out, the session expires (times out) or the page errors.
A Cookie is stored in the client machine so it's lifespan is only limited by the length of time that the user retains that cookie.
What code are you using to set and request the cookie variable?
Dr BComment
-
help in session and cookies
hi everyone i have issue with cookies. i'm using cookies variable for identifying the user.but the issue is the page does not work or get the user information in first time but i 'refresh' page, it works properly? can any one help me?Last edited by jhardman; Aug 26 '08, 02:40 PM. Reason: merged threads. Please do not double-post your questionComment
Comment