Jump to content

Sessions or Cookies?

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Sessions or Cookies? Rate Topic: -----

#1 User is offline   BigMike Sidelka 

  • W.R. Sergeant
  • Group: Members
  • Posts: 241
  • Joined: 31-July 06
  • Gender:Male
  • Location:C-Town, Ohio

Posted 14 January 2009 - 03:19 AM

When doing login forms and authentication, which is preferred? Sessions or Cookies? Safer? Easier?
0

#2 User is offline   sypher 

  • the owner3r
  • Group: Administrators
  • Posts: 1,578
  • Joined: 04-April 06
  • Location:North Wales, UK
  • Interests:Art, Boxing, MMA, Graphic Design, Web Design etc. ;)

Posted 14 January 2009 - 09:02 AM

For me its sessions.
sypher design - North Wales Web Design | Latest Work: - Scala Cinema

CSS - Can't See Sh*t
0

#3 User is offline   Catalyst 

  • Codesmith
  • Group: Administrators
  • Posts: 1,049
  • Joined: 04-April 06
  • Gender:Male
  • Location:San Diego

Posted 14 January 2009 - 12:20 PM

sessions, cookies can be changed very easily by the user
0

#4 User is offline   bitwords 

  • W.R. Private
  • Group: Members
  • Posts: 1
  • Joined: 19-February 09

Posted 19 February 2009 - 12:37 AM

Sessions would be better unless the user asks for "remember me on this computer" thing which needs to be handled with cookies.
0

#5 User is offline   Ben Abrams 

  • The buddy system:never fails
  • Group: Administrators
  • Posts: 1,850
  • Joined: 04-April 06
  • Gender:Male

Posted 24 February 2009 - 03:37 AM

nobody is discussing server load. Both are equally good in their own application.

Having thousands of "sessions" can take a hit on the server. Cookies would be better for a long term usage.

View PostSirkent, on 21 September 2007 - 04:26 AM, said:

<monty python high-pitched female voice>I DON'T LIKE SPAM!</monty python high-pitched female voice>
0

#6 User is offline   EncoderDecoder 

  • W.R. Sergeant
  • Group: Members
  • Posts: 260
  • Joined: 01-March 11
  • Gender:Female
  • Location:Philippines

Posted 02 March 2011 - 09:48 PM

isn't it better if you use both..? cookies for the user not to log-in again and again.. sessions for you to keep a record of the user's log-in information..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users