|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have done this tutorial, Ben's membership tutorial, but i am having a problem. I don't understand why the following lines at the start of the index.php dont work.
PHP Code:
If a user as clicked the remember me checkbox, when he returns to the website they get cought in a loop as they are redirected to the CheckCookie function and then redirects the user back to the index.php page if cookie login is successful. How can i stop the login process from being cought in a loop?
__________________
regards, Fulton |
|
#2
|
|||
|
|||
|
i have had this problem as well a few times. Check this for a misspelling:
Quote:
should be strMethod=checklogin. Hope this helps.
__________________
hey it's the CHARKING Last edited by thecharking : September 22nd, 2003 at 04:30 AM. |
|
#3
|
|||
|
|||
|
It cant be
PHP Code:
As there is nothing to do for that in the login.php, but if you use PHP Code:
then you get an invalid login error. So it has to be PHP Code:
|
|
#4
|
|||
|
|||
|
hmm...
this is my login script. Maybe it is different somehow?
PHP Code:
it refers to the function PHP Code:
I think we're talking about the same script... if your script is different, maybe it's not the same one, or maybe not the one that was in the support file? At any rate, I've got mine working this way.. although I am having problems with the remember me of the cookie, not the actual checking just it remembering. Oh well, lemme know how this is turning out. |
|
#5
|
|||
|
|||
|
OK i replace my code with your code and still get the same looping, below is what i have on my index.php page, what do u have
PHP Code:
|
|
#6
|
|||
|
|||
|
it looks the same, except I have this line:
PHP Code:
I don't know if location and age are needed, I didn't add them though ![]() here is my entire login page, i'll zip it for you. along with this and the previous code, it should work I think... |
|
#7
|
|||
|
|||
|
No still not working, what dose you class.security.php look like?
can you send me your revised copy of this members script? |
|
#8
|
|||
|
|||
|
double hmm...
i have the support file still I believe. I can't decide which it is since there were many and for some reason I forgot to label them properly. I will include the one with the most info, although this may be for another tutorial about writing articles (although I think that was jsut a later lesson in the one by ben).
|
|
#9
|
|||
|
|||
|
Hi again i used the code you supplied with you previous post and i still get the looping.
This is what the index.php looked like PHP Code:
Last edited by DDDooGGG : September 22nd, 2003 at 06:36 AM. |
|
#10
|
|||
|
|||
|
OK, i got it working all properly,
![]() |
|
#11
|
|||
|
|||
|
yay!
I'm so glad I could help (if I did at all). I am so new to php it's a great reward to be abl to ehlp, even when it's just premade scripts and such. Hope to see your site soon! I'm guessing it's still in pretty early development stages if you are jsut implementing logins...
thanks for being patient with my bad scripts or whatever I had wrong. |
|
#12
|
||
|