Re: Login problems

From: Erwin Moller (since_humans_read_this_I_am_spammed_too_much_at_spamyourself.com)
Date: 07/26/04


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



Relevant Pages

  • Re: copy folder to remote server
    ... copy folder to remote server ... copy folder to remote server ... Your search - madunix - did not match any documents. ...
    (RedHat)
  • RE: [PHP] Communicating with remote server
    ... On the database server, under the control of it's web server, the script ... Communicating with remote server ... both my server and the remote server have webservers with PHP ...
    (php.general)
  • Re: where did all the files go
    ... the local web site folder to a remote test server and delete the local ... the pages to a remote server, are the files that are copied to the remote ... You can then back up the entire folder ... VS2005 has a Publish Web Site option that enables you to publish to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Configuring GNOME to automatically start screensaver after user logged in - Fedora Core 6
    ... I can now remotely connect to the native X display of the ... remote server without having to log into the remote server first ... it presents me with a login and I am able to log in. ...
    (linux.redhat)
  • Trying to understand DCOMs network traffic
    ... I have a server object which runs as an out process exe on my remote ... has been created on the remote server and then goes happily on its way. ... Dim oRemoteServerObj as object ... Dim vResults as variant ...
    (microsoft.public.vb.com)