Jump to content


Login Script Chapter 12

login script

  • Please log in to reply
2 replies to this topic

#1 WDjoe



  • Members
  • Pip
  • 13 posts

Posted 5 February 2012 - 2:20 PM

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?
  • 0

#2 WDjoe



  • Members
  • Pip
  • 13 posts

Posted 6 February 2012 - 6:47 AM

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. :-)

  • 1

#3 Larry



  • Administrators
  • 4916 posts
  • LocationState College, PA (USA)

Posted 6 February 2012 - 9:21 AM

Kudos for figuring it out and thanks for sharing your solution.
  • 0