Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi, I am implementing the login script in chapter 12 but I don't understand something and hope someone can give me an answer.

 

Every time I enter my credentials into the login form and press "Login" it automatically transfers me to my index.php page.

 

 

Can anyone help please?

Thanks

Link to comment
Share on other sites

I figured it out and would like to share my solution.

I knew it had to be a sessions issue but all the "session_start()" was correctly placed on all my pages.

But in Chapter 12 there is a mention that you can put the "session_start()" in the php.ini folder.

 

That's what I did. Just make a folder and name it php.ini and inside it just place "session_start ()" (without the quotation marks).

 

Everything now works as it should. :-)

 

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...