faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

191 of 364 people (52%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

I would like to create a user authentication system, but when they log in, how would i make it personalized.
Can you tell me why I always get ?PHPSESSID=fc912e31cae17760fd97ce9f4684ae18 attached to all my link

Mar 15th, 2008 21:18
dman, ha mo, Tim Stumbaugh, Articles Way, Cinley Rodick, urge overkill, Matt Gregory, Martin Tuncaydin, alan damico, http://www.ttnr.org


There are many ways to accomplish what you want to do.
The simplest is to lookup preferences based on the username submitted 
at login.
Some more complicated solutions include building a preference database 
keyed by user id which can then be stored on the users' machines in a 
cookie (Provided that cookies are allowed on their machine.)
The general idea is to save a group of preferences for a user based on 
name or ID somewhere on the server and then load those user prefs when 
the suer logs in.
==============
next
=================
you can also think of using session management to 
identify/authenticate 
user and then personalize the page
=======
http://www.djangoproject.com/documentation/authentication
Regarding the PHPSESSID being attached to every link. In your php
configuration file, the session.use_trans_sid directive is enabled. Set
this line to 0 (instead of 1) to remove the sid from the link