View Poll Results: Cookies or session variables?

Voters
4. You may not vote on this poll
  • Cookies mmmm... tasty

    1 25.00%
  • Session variables yummy like cakes

    3 75.00%
Results 1 to 3 of 3

Thread: Ok guys, got another one for you

  1. #1
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts

    Ok guys, got another one for you

    I'm doing an inTRAnet project (not internet) that has an access database back end with asp front end. It's essentially a kind of diary/booking system.

    As such I don't really have much experience of the technologies I'm using; so armed with a SAMS Teach yourself book and Hexus forums I need to complete the project!!


    Current Problem is:

    Should I use cookies or session variables?

    I'm pretty set with using session variables - they seem easier to use. Are there any major advantages to using cookies? (I don't need to store anything after browser has been closed)

  2. #2
    Senior Member Shad's Avatar
    Join Date
    Jul 2003
    Location
    In front
    Posts
    2,782
    Thanks
    23
    Thanked
    42 times in 25 posts
    Depends on the language. Generally speaking, always go for sessions.

    However, in the case of ASP 3.0 a session has a session id which is stored as a cookie on the users PC, so you cant have a session without a cookie capable user which makes it kinda pointless (though there's less i/o).

    Other languages do differ though, but I'm not entirely sure if any can work sessions without a cookie. I think ASP.NET can do it entirely server based, but I haven't done any work with cookies or sessions in .NET yet
    Simon


  3. #3
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    cheers shad

    forgot to mention... can't use ASP.net

    looks like it'll be sessions for me then

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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