PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 15th, 2003, 05:20 AM
DDDooGGG DDDooGGG is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Melbourne, Australia
Posts: 97 DDDooGGG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 33 sec
Reputation Power: 6
Question Building a Members Area With PHP: Part 4/6. CheckCooking prob

Hi,
The login script and creating a session and cookie all work. But when a user checks "remember me", they will get a cookie with the sessionid, but in the CheckCookie() function will stop at the following line:

PHP Code:
//cookie session = stored session, login
$result mysql_fetch_array($strQuery);
//echo $result['sessionid'];
if($dtlsSecurity->StoreSession($result[0], $result[1], $result[3], "{$result[4]},{$result[5]}")) <- STOPS AT THIS LINE
header
("Location: index.php");




I also discovered that when you alter the users Table to add the "sessionid" column, you use:

PHP Code:
 ALTER TABLE `usersADD `sessionidVARCHAR(255NOT NULL


but in the CheckCookie() function sqlQuery it reads:

PHP Code:
 $strQuery mysql_query("SELECT * FROM users WHERE session = '{$_COOKIE['mem']}'"); 



session should become sessionid,

anyway i would appreciates some help with why i get stuck at the marked line above, thanks
__________________
regards,


Fulton

Reply With Quote
  #2  
Old February 17th, 2003, 01:52 AM
DDDooGGG DDDooGGG is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: Melbourne, Australia
Posts: 97 DDDooGGG User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 33 sec
Reputation Power: 6
this subject should read Members Area With PHP: Part 4/6. CheckCheckie Problem

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Building a Members Area With PHP: Part 4/6. CheckCooking prob


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway