![]() |
| ||
| Help login issue Hi php gurus. newbie here needs help. I m having a problem with my login script. Basically it works 95% of the time, but once and a while it doesn't. The session variable doesn't get set, or remembered, and the next referred page fails on the isset check. I tried a number of things, Please any suggestions would be great. My code is pretty messy...at the moment... but I've been going nuts with this. I recently added the session_regenerate_id and the session_write function to no avail. snipplet from login.php. //Start sessionNext Page. Client.php I use this check to confirm the session is there. session_start(); |
| ||
| Re: Help login issue Hi, I am as newbie to PHP as you but in this line you missed teh '$' symbol. sql="SELECT login,id FROM tblDealer WHERE login='".$email."' and password='".$password."'"; in front of the sql variable $sql Although you can go to this link http://us2.php.net/manual/en/function.mysql-query.php Hope this help, Camilo |
| ||
| Re: Help login issue Thanks Camilo, I missed that character when pasting into this thread but it is there in my code... |
| ||
| Re: Help login issue Hi, What program are you using for debugin your application?. I am using PHP Designer. I think that it would be useful to see what warnings does it give you. Camilo |
| ||
| Re: Help login issue nothing really.... I guess I should really start using something. But like I said it works 95% of the time, I can't reproduce the problem consistently, it seems to happen randomly.....thx |
| ||
| Re: Help login issue ..anyone have any ideas...??? |
| ||
| Re: Help login issue Try eliminating one problem at a time. create a page with just this code in it and refresh it several times, if it resets to zero then you have a problem, if not, I'm pretty sure that it is not a problem with the session. <? |
| ||
| try this code //Start session |
| ||
| Re: try this code actually, I really don't see much difference, but it looks much cleaner. :-/ |
| All times are GMT -4. The time now is 12:11 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC