Do I need seesions here?

Do I need seesions here?

Post by Allis » Tue, 13 Apr 2004 08:23:53


php newbie question

I have a small website based on php/mysql.
Users access it with a username and password thus their id is established
and subsequent access to data depends on their id.

Is there any reason for me to be using sessions?

Thanks
A
 
 
 

Do I need seesions here?

Post by DB McGe » Tue, 13 Apr 2004 11:13:41


Unless you want to require the user to enter their name and password on
each page, using sessions is the usual way most sites maintain a user's
authentication status between pages.

This is an excellent tutorial on the subject:

http://www.yqcomputer.com/

 
 
 

Do I need seesions here?

Post by Douglas Cl » Tue, 13 Apr 2004 12:13:00


uhm YES.
http is a stateless protocol. Sessions are needed for any kind of state
or sessions.

Tracking a users browser session is what you are trying to accomplish
here.

Good Luck