![]() |
|
#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 !!!!!!!!!!!!!!!!!!!!!!!!! __________________
Copyright by eRIC 2003 © !!! Last edited by JdS : 22-May-2004 at 22: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
Prepping for deployment 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 22:37 |
| C I/O problem | kelly80 | C Programming Language | 4 | 27-Apr-2004 20:15 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 07:53 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 09:11 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 10:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The