By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,729 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,729 IT Pros & Developers. It's quick & easy.

login system not working

P: 20
i have built a login system but its not allowing users to be logged in i don't know why , it doesn't show any errors and i'm suspecting that its becoz of session_start() which initially had problems and i made some configuratoins.please help to get out of this problem.

i thank you in advance.
Feb 9 '07 #1
Share this Question
Share on Google+
1 Reply


P: 99
Put in a page where you expect the session to have variables following
[PHP]print_r($_SESSION);[/PHP]

If it's an empty array you haven't set your session variables.

One of the stupid mistakes i made was to point my code into the log out part so when i let someone login he was logged out at the same time. Maybe you made that same mistake too?

Which browser do you use? If IE is set to high security sessions won't work.
Feb 9 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.