Current location: Hot Scripts Forums » Programming Languages » PHP » Help with using cookies


Help with using cookies

Reply
  #1 (permalink)  
Old 12-20-03, 03:14 PM
parazuce parazuce is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Help with using cookies

Hi,

Im using a login script that I made myself and I was wondering how you could make a logout button that deletes their cookie that says they are signed into my site...
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 12-20-03, 08:39 PM
RynO RynO is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
setcookie("cookiename", "", time()-300);

You simply set a cookie with the same name, no information, and have it expire before it was made (hence the time()-300).
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
Delete cookies regardless of case. AussierulesOK JavaScript 1 11-08-03 11:15 AM
Can't seem to get the cookies to the cookie_jar benny666 Perl 1 10-28-03 05:54 AM
Form cookies kelas JavaScript 1 07-04-03 01:42 PM
how to get my sessions script work with cookies JM007 PHP 1 06-24-03 09:06 AM
problem in cookies @ phppro list vb2vb PHP 13 06-22-03 09:04 PM


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