|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Discussion: Building a Members Area With PHP: Part 5/6
If you have any questions or comments please post them here.
This forum post relates to this article |
|
#2
|
|||
|
|||
|
Welcome back!
Hv bn ckg the site daily for the follow up.
Thanks, Martin ps I'll be back with my stupid questions lateron..... |
|
#3
|
|||
|
|||
|
Hi!
I would like to ask the author of this article or anyone who are learning from this article a question: Is there any register.php file? or the registration.php file to be instead. Because, in the index.php file it has a link that linked to register.php. Regards, |
|
#4
|
|||
|
|||
|
register
Yep, tts a small typo, change the link to this file into registration
Martin |
|
#5
|
|||
|
|||
|
Thanks Marty. Have a nice day!
|
|
#6
|
|||
|
|||
|
Yes, that is a typo.
|
|
#7
|
||||
|
||||
|
registration.php ...
also, depending on the version of php you are using <Ben said that he was using version 4.0> you may need to change the way your variables are passed.. ie, turning register global variables off |
|
#8
|
|||
|
|||
|
im actually using php 4.2.1
|
|
#9
|
|||
|
|||
|
not logging in on index.php without cookies
hi there everybody!!
playing and struggling around with this tutorials for a time now, i´m stucked onto a problem i don´t find any solution for.... i´ve got almost everything working fine right now, i get my records into the tables (users, session, log), but if i try to log in on the index.php with switched off cookies, the page shows me the 'welcome guest'-sentence, instead off my first-and lastname...if i try the isLoggedIn-function on this page, after a sucessful login on the login page (with isLoggedIn-function returning = '1' ), i get return of '0'. anyone had the same probs? or do have any idea to solve this? perhaps master rowe himself? help would be very appreciated!! greetz holger |
|
#10
|
|||
|
|||
|
Firstly you need to determine what is actually causing the problem. open up the session table, and check if there are actually entries in the database, and also check if they are valid (echo your session_id() and compair to the db)
from there you should have a better idea where to look |
|
#11
|
|||
|
|||
|
not logging in on index.php without cookies- 2nd
hi ben,
thanx for fast reply.... well, i´ve checked the $session_id on the index.php, and it is a different to the id, which is generated on login.php...it seems to me, that the call of the isLoggedIn-function generates everytime a new session_id.... i´ve tried a lot, but i don´t have any clue to get around this... thanx again, holger |
|
#12
|
||||
|
||||
|
Correct me if I'm wrong, Ben, but the session ID shouldn't be different unless they've: A) Logged onto the system from a different computer or B) let their session time expire, right?
|
|
#13
|
|||
|
|||
|
Quote:
Ok, im correcting you. While it is not the norm, some server builds do not actually store the session_id from that computer. This is why you are getting a different id, and its not logging in. Try the following to fix the problem. Open up ur php.ini file. look for "session.use_cookies" make sure its set to 1 look for "session.auto_start" turn that to 1 restart your server and try again. |
|
#14
|
||||
|
||||
|
ok thanks
![]() Only reason why I thought that is because with the configuration Im using the session # never changes until it either expires or I log on with another machine... Thanks for clarifying it for me ![]() |
|
#15
|
|||
|
|||
|
online.php
hi@all
have i to include "online.php" into the site where i want to use the "who-is-online" - function ? i tried to include it into index.php but when i load the page i get the following: "Fatal error: Cannot redeclare class dbVars" what does this mean ? how can i avoid this mistake ? hope someone can help me. cu |
|
#16
|
|||
|
|||
|
one question.
How do I make a log out link? thus ending the session? I haven't seen a single thing about this anywhere. |
|
#17
|
|||
|
|||
|
deleteduser,
try using include_once instead of include to fix your problem. MacZealot, this is rather easy, all you have to do is make a link to: login.php?strMethod=logout I think thats right?!?!? |
|
#18
|
|||
|
|||
|
thanks a lot.
now it works i really like your article and can't wait to read the last part. thx. Last edited by DeletedUser : January 28th, 2003 at 06:54 AM. |
|
#19
|