General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 19th, 2003, 09:47 PM
DDDooGGG DDDooGGG is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Melbourne, Australia
Posts: 97 DDDooGGG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 33 sec
Reputation Power: 6
Question sessions or cookies??

I have been reading a lot of tutorials on user authentications. What is safer/better, using cookies or sessions?
__________________
regards,


Fulton

Reply With Quote
  #2  
Old September 19th, 2003, 09:59 PM
Softwaremaker Softwaremaker is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Elbonia with Dilbert and Wally
Posts: 4 Softwaremaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi DDDooGGG,

Again, just like any engineering concepts, it depends on what you want and how you want to deploy it.

In these days of enterprise application, most, if not, all browsers accept cookies.

Cookies are a relatively easy way to maintain easy state and it can be safely deployed across a web farm. State Management is decentralized to the client browser which makes the server processing more scalable for multi-connections and processing

Sessions are very easy to use however, state is kept by the server mapped to the current session ID. That makes a multi-server, load-balancing usage very difficult. It puts the workload on the server instead and will make multiple-connections to a same server application very difficult as well.

There are pros and cons to each. However, in my opinion, sessions were overly preached and used in those days of cookieless browsers. The mindset must change today. And sessions were also used to store objects which is NOT recommended. To store objects in cookies, serialize it out in XML or some delimited text form.

hth

Reply With Quote
  #3  
Old September 20th, 2003, 08:30 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
My advice to you DDDooGGG is to use sessions for authentication.
When you need to set and retrieve preferences or other similar data it is best to use a cookie.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > sessions or cookies??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway