Results 1 to 4 of 4
  1. #1
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default CooKies and Session

    Does anyone know what is the difference between session and cookies?
    Please clear me.
    Mak
    (Living @ Virtual World)

  2. #2
    kishan's Avatar
    kishan is offline Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    0

    Default

    The Key difference would be cookies are stored in your hard disk whereas a session aren't stored in your hard disk. Sessions are basically like tokens, which are generated at authentication. A session is available as long as the browser is opened.

  3. #3
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    450
    Rep Power
    6

    Default

    KIshan,
    As you said ,cookies is one way to keep session tracking.isn't it?
    Mak
    (Living @ Virtual World)

  4. #4
    kishan's Avatar
    kishan is offline Member
    Join Date
    Apr 2009
    Posts
    57
    Rep Power
    0

    Default

    If you set the variable to "sessions", then user activity will be tracked using browser sessions ,cookies are client side where as sessions are server side
    Last edited by kishan; 04-27-2009 at 02:54 PM.

Similar Threads

  1. Replies: 1
    Last Post: 04-22-2009, 12:20 AM
  2. Replies: 2
    Last Post: 12-23-2008, 07:35 PM
  3. Working with Cookies and Session tracking(?)
    By javanewbie in forum Java Servlet
    Replies: 3
    Last Post: 11-07-2008, 01:22 PM
  4. which one to opt http session or cookies
    By amu in forum New To Java
    Replies: 1
    Last Post: 10-04-2008, 10:16 AM
  5. how to expire a session in struts without using cookies
    By sathya_k_83 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-22-2007, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •