Connecting Tech Pros Worldwide Forums | Help | Site Map

cookies and session

Newbie
 
Join Date: Aug 2008
Posts: 17
#1: Aug 22 '08
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?



Newbie
 
Join Date: Aug 2008
Posts: 17
#2: Aug 22 '08

re: cookies and session


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 m e?
DrBunchman's Avatar
Moderator
 
Join Date: Jan 2008
Location: Winchester, UK
Posts: 930
#3: Aug 22 '08

re: cookies and session


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 B
Newbie
 
Join Date: Aug 2008
Posts: 17
#4: Aug 25 '08

re: cookies and session


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?
Reply