Login with file

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Wed Apr 17, 2013 5:22 am

If you are using session_start() then it has to be the first line in the php file.

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Wed Apr 17, 2013 2:10 pm

Here you go, in this video from jream, he explains creating and using a session wrapper to selective start a session or get an existing instance of it as necessary.

http://jream.com/learning/videos/php-oo ... on-wrapper

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Fri Apr 19, 2013 12:10 pm

You must session_start() on every page using session variables. here's another great tutorial targeted more on the session than the wrapper.
http://jream.com/learning/videos/php-ba ... e-security

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests