cookies and session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilayacute
    New Member
    • Aug 2008
    • 17

    cookies and session

    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?
  • ilayacute
    New Member
    • Aug 2008
    • 17

    #2
    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?

    Comment

    • DrBunchman
      Recognized Expert Contributor
      • Jan 2008
      • 979

      #3
      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

      Comment

      • ilayacute
        New Member
        • Aug 2008
        • 17

        #4
        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 question

        Comment

        Working...