SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Sessions problem
-
May 4, 2001, 17:48 #1
- Join Date
- Apr 2001
- Location
- Michigan
- Posts
- 284
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I have a file called accesscontrol.php and it is a login page. When the user logs in, i have it set to go to protected.php, but when it tries to open it, all the browser says is web site found, waiting for reply, over and over and over again. Does any one know why?
-
May 5, 2001, 08:46 #2
- Join Date
- Oct 2000
- Location
- Austin, TX
- Posts
- 1,438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
what header() code are you using?
-
May 5, 2001, 21:53 #3
- Join Date
- Apr 2001
- Location
- Michigan
- Posts
- 284
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
header("Location: protected.php
-
May 5, 2001, 21:57 #4
- Join Date
- Apr 2001
- Location
- Michigan
- Posts
- 284
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
header("Location: protected.php");
-
May 6, 2001, 03:53 #5
- Join Date
- Jul 1999
- Location
- Derbyshire, UK
- Posts
- 4,411
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It needs to be:
header("Location: protected.php\n");
All header lines should be ended with \n (A newline) and the final header should have two newlines, but I believe PHP handles that for you.Karl Austin :: Profile :: KDA Web Services Ltd.
Business Web Hosting :: Managed Dedicated Hosting
Call 0800 542 9764 today and ask how we can help your business grow.
-
May 6, 2001, 11:23 #6
- Join Date
- Oct 2000
- Location
- Austin, TX
- Posts
- 1,438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
PHP handles it for you, so you don't need the \n.
Bookmarks