![]() |
|
#1
|
|||
|
|||
Session ProblemIn index.php there is form for enterence user and password.
index.php **************** PHP Code:
********************* secret.php PHP Code:
adminpanel.php PHP Code:
Problem is here in header. When i use header("Location:adminpanel.php"); it says error. does header send sessions too? or not? if does how i must send. and i wanto destroy all sessions opened by my site how can i do? What can i do here? I have logout.php PHP Code:
THANKS !!!!!!!!!!!!!!!!!!!!!!!!! Last edited by JdS : 22-May-2004 at 23:24.
Reason: Please enclose PHP code in [php] & [/php] for syntax highlighting
|
|||
|
#2
|
||||
|
||||
|
eRIC,
When you post php code examples, please enclose the code with [php] bbcode tags instead of [COLOR]. About your issue, once a user has logged in and you want to re-direct them to a 'secret' page via the login script, you MUST include the session ID information in the header() location, in the query string. e.g. die( header('location:/example_secret_page_1.php?'.SID) );. Please look at this example login code here: http://www.gidforums.com/t-887.html __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| session error | bananatji | MySQL / PHP Forum | 2 | 17-May-2004 23:37 |
| C I/O problem | kelly80 | C Programming Language | 4 | 27-Apr-2004 21:15 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 08:53 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 10:11 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 11:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The