Login with file

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Re: Login with file

Post by johnj » 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

Re: Login with file

Post by seandisanti » 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

Re: Login with file

Post by seandisanti » 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

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest