Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-23-2012, 06:44 AM   PM User | #16
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,882
Thanks: 9
Thanked 291 Times in 287 Posts
Dormilich is on a distinguished road
that has nothing much to do with the login script (which is intended to provide the form for logging in!). what you need to do to continue a session is checking if the session says that the user is already logged in.
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote
Old 11-23-2012, 03:56 PM   PM User | #17
elitis
Regular Coder

 
Join Date: Sep 2010
Posts: 319
Thanks: 9
Thanked 6 Times in 6 Posts
elitis is an unknown quantity at this point
Ok, then I was on the right track. Working now, but maybe I should have explained the problem a little more in depth. What I meant was I assumed the problem was that I had that line in the wrong... section (for lack of a better word). Which I did, after playing with the code some more, I found/realized that because of where it was, my code only checked to see if the user was logged in (if ($_SESSION['loggedin'] == 1)) after the form was submitted.

But thanks, hopefully I can use this as a reference for when I start adding to my classes.
__________________
Coding is a challenge, get used to it
Always remember to debug
Try the guess & check method
Break it down into simple steps
elitis is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:12 PM.


Advertisement
Log in to turn off these ads.