Authentication

From: Date: Wed, 16 Jan 2002 14:59:39 +0000
Subject: Authentication
Groups: php.db 
Request: Send a blank email to php-db+get-15884@lists.php.net to get a copy of this message
I have a successful website with authenticatin and logons. There are sections that I allow anyone to get to, but the others have to be authenticated. This site is not using frames at all. its a page by page, with the unit that does the authentication and sessions being included in each page. I've taken these same units to another site. I altered the pieces neccesary to hit the new sites database and users. This site is using frames. the outer frames are not using the authentication or sessions. However, internal pages do. As I enter a section that needs a logon, it prompts me. Then it goes to the correct page. But the next page it goes too, it wants to get a logon again. These pages are in a row, and they all use the same sessions stuff that the other site uses. I know that they all have to include the same units, so once it needs to logon, it'll prompt that, but it should pass this session info from here to there, and not have to logon again. Its driving me nuts. The only thing I can think of thats different is the frames. I even took the same code from the other site ( the one that does work without frames), and plugged it in. So the session logon was for the other site and other db. It'd prompt me each time too. I am not sure what to do now... help please.
When I first set up PHP my sessions did not work. What I eventually found was something to do with my php.ini file on how it deals with sessions (ie. where they save them, etc) This is some stuff from my php.ini file which i found useful (and made it work, I think) register_globals = true session.save_path = /tmp session.use_trans_sid = 1 session.auto_start = 1 Some of it might not be the solution but I think the session.save_path directive is what makes it work. For better definition of what these things do, look in the php manual (Chapter 3. Configuration). Hope this helps, Adam.

« previous php.db (#15884) next »