Re: Login problems
From: Erwin Moller (since_humans_read_this_I_am_spammed_too_much_at_spamyourself.com)
Date: 07/26/04
- Next message: Erwin Moller: "Re: easiest way to create a graph?"
- Previous message: Erwin Moller: "Re: JOIN table results w/MySQL"
- In reply to: John: "Login problems"
- Next in thread: John: "Re: Login problems"
- Reply: John: "Re: Login problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jul 2004 10:04:27 +0200
Hi John,
3 remarks that hopefully can help you:
1) Study the difference between a directory on your harddisk and a directory
served by a webserver.
It is very strange that you tell us where which actual directory you use.
The webserver is responsible to serve a certain directory (and its
subdirectories) but can serve them to the client under a completely
different name. That is not uncommon.
If you say your URL to your remote server is http://localhost/newland I
expect you are making a mistake. Unless configured very strangely,
localhost always point the machine you type localhost in. (127.0.0.1)
2) .htaccess file.
Such a file contains AuthName, AuthUserFile, AuthGroupFile.
Did you set that up correctly on the servermachine?
More to-the-point: Do the files named in .htaccess exists on that machine?
And do the values in those file make sense?
Only copying the .htaccess file is not enough!
3) This is just a hint: It you accidentely put wrong hyperlinks (like
http://localhost/etc) into your app, or wrong form-action values, you may
go from your remote server to your local server, maybe without noticing it.
In that case your cookies will be invalid because your browser considers
them to be different domains. (luckily)
Hope that help.
Good luck.
Regards,
Erwin Moller
> Hello
>
> I have created login pages but am having problems when I test them for
> my site.
>
> When I type all the registration info in it accepts it no problem.
> When I try and sign in though and then try and access the restricted
> pages it takes me back to the login page.
>
> The local root folder for the site is:
> C:\dw_dynapps\newland\
>
> The remote folder and testing server for the site is:
> C:\remote\newland\
>
> The URL is:
> http://localhost/newland/
>
>
> I am wondering whether it is something wrong with my .htaccess file?
> And whether it is in the right location?
>
> I get a tad confused testing locally because I never know where to put
> things and what the site root is?
>
> I have put the .htaccess file in the same folder as
> C:\dw_dynapps\newland\ so it is also uploaded to the testing folder of
> C:\remote\newland\
>
> Is this the right place? If my site is upload to the remote folder
> would that then mean that the site root with just be the C drive, and
> that's where it should be located?
>
> In case it is already in the right place, and it might be something
> wrong in the actual file, this is what I have inside the file:
>
> php_flag register_globals off
> php_value session.save_path C:\home\user\siteroot\sess\users
> php_value session.cookie_time 3600
> php_value session.gc_maxlifetime 3600
> php_value include_path .:C:\home\user\siteroot\sess
> php_value auto_prepend C:\home\user\siteroot\sess\path_file.php
>
> Again, I'm not sure if I have the paths correct because I'm not sure
> when testing locally.
>
> Cheers for any help
>
> John
>
>
>
>
> Win XP Pro / DW 7.0.1
> Running locally: Apache 2.0.49 / PHP 4.3.7 / MySQL 4.0.20a
- Next message: Erwin Moller: "Re: easiest way to create a graph?"
- Previous message: Erwin Moller: "Re: JOIN table results w/MySQL"
- In reply to: John: "Login problems"
- Next in thread: John: "Re: Login problems"
- Reply: John: "Re: Login problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|