Current location: Hot Scripts Forums » Programming Languages » PHP » Session vs. Cookie


Session vs. Cookie

Reply
  #1 (permalink)  
Old 09-09-04, 12:26 AM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Session vs. Cookie

Which should I use? Compare and contrast. Security/functionality. I just need info please.
__________________
God save us from the religious fanatics
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-09-04, 06:13 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
Well it really depends what your using it for, they really are just as functional as the other but some people disable cookies so keep that in mind.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 09-09-04, 06:20 PM
Acecool's Avatar
Acecool Acecool is offline
Aspiring Coder
 
Join Date: Nov 2003
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Why cant we all just live in peace?
Session + Cookie..

If cookies enabled {
set cookie
set session
}
else
{
set session
}

if cookie exists {
read cookie, session
compare, tampered?
}
else
{
read session
}
__________________
Check Acecoolco.com for PHP Tutorials, and other tuts
If you plan on contacting me, please read this: Legal Terms & Conditions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 09-09-04, 07:49 PM
Mister B.'s Avatar
Mister B. Mister B. is offline
Wannabe Coder
 
Join Date: Jul 2003
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
Okay, I am more concerned about security to tell you the truth. It is for a login script. I want people to login, and to stay logged in till they leave the site for more the 15 minutes, or till they log out.
__________________
God save us from the religious fanatics
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server side variables Puno PHP 13 08-13-05 11:22 PM
session help darkcarnival PHP 5 05-09-05 01:40 AM
delete cookie prenaud JavaScript 0 07-28-04 11:28 AM
How to retrieve a cookie from webpage? z94joma Windows .NET Programming 0 03-07-04 09:37 AM
Weird cookie request. grawss Script Requests 0 07-19-03 11:30 PM


All times are GMT -5. The time now is 10:00 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.