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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×