We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Cookie question.
Topic Started: Apr 25 2005, 04:18 PM (478 Views)
Dennis
Member
[ *  *  *  *  *  *  * ]
Well, I'm having no trouble setting cookies, but I am having one problem.

When I have any cookies from any site named anything, it logs in. The only way to be logged out is to delete all the cookiesm from any site. Why is this?
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Shouldn't be like that.
Also, sessions are better (or thats what seth says anyway)

Anyway, might we see your code?
Offline Profile Quote Post Goto Top
 
Nemesis
+o0 1337 |=0|- j00
[ *  *  *  * ]
What browser are you using, Balrog?
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Qj
April 25, 2005 03:23 PM
Shouldn't be like that.
Also, sessions are better (or thats what seth says anyway)

Anyway, might we see your code?

Sessions: remember data between pages (like login info)

Cookies: remember data between site visits (like Remember Me login)

Pick your poison.
Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
Qj, I'll post the code later, I don't have it with me now, it's on the other computer. ASDF, I'm using Firefox.

Also, I'm using the $_SESSION variable, so I'm using Sessions in conjunction with Cookies. That's the best way, from the way I learned it.

EDIT: Seth, I want the remember me function for the site, but not for the Admin, like on IPB.
Offline Profile Quote Post Goto Top
 
Nemesis
+o0 1337 |=0|- j00
[ *  *  *  * ]
Seth
April 25, 2005 03:45 PM
Qj
April 25, 2005 03:23 PM
Shouldn't be like that.
Also, sessions are better (or thats what seth says anyway)

Anyway, might we see your code?

Sessions: remember data between pages (like login info)

Cookies: remember data between site visits (like Remember Me login)

Pick your poison.

Which would YOU rather prefer? :geek:
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
Global sessions are one of the easiest things to learn as well! that makes them excellent. I am using them on a currant project.

$_SESSION can store anything you want, so you can assign somebodys username to it and call it from anywhere in a really simple way
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply