Unstoppable Domains

User System -- Help

Spaceship Spaceship
Watch

Ray

VIP Member
Impact
167
what type of system do you use for maniulating your users.

What i mean is, do you use sessions or cookies, or something else. I do not want to use sessions because it is ugly in the url, and cookies because alot of users dont use them. What do you recommend.

I was thinking of using sessions and storing them in a database and having them expire every 1 hour.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I think cookies is the most common but I would like to see what someone more knowledgeable about it has to say.
 
0
•••
sessions are ugly in the url? oh you mean like GET variables... nah i just use a login and then once they login i set $_SESSION vars using session start. and for like "remember me", i use cookies. upon their first page visit, it checks to see if the session is started, if not, it checks for cookies, if cookies exist, the session is started and all the appropriate values are changes from cookies to session so it acts like its just saved session.
 
0
•••
You don't seem to be understanding sessions properly in PHP.

Depending on how PHP is setup it will use cookies anyway. If PHP is set up the default way then it will make a choice. If cookies are available it will use cookies, if they are not it will use a sess_id in the url's.

If a cookie is used all it stores is the sess_id. The actual data itself is stored in a file on the server. This can be changed to store in a DB if you use session_set_save_handler
 
Last edited:
0
•••
anyone have anymorea advice
 
0
•••
Use php Sessions.
There's just no reason NOT to use them... they're all around the best and easiest way to have someone login to a system like that you'll create.


Bruce
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back