Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
$_SESSION['user'] = $user; if ($targetpage == '') echo ('logged in.'); else header('Location: ' . $targetpage); exit; This is the code snippet in "login.php" I don’t want to display "logged in", Do I want to direct the page to "index.php"? |
||||
|
It usually should only appear for less then a second, unless you are on the login.php page itself and never wanted to go to another page originally. Don't link to the "login" page but to the page which is password protected, that way the user is redirected to that page again after he has been logged in, and he won't really see that text for long enough. Alternatively, just open the generated login.php file and replace that "logged in" text with something you like better. |
||||
|
Same problem: prompting "loggedin" instead of the targetpage. In the address at the same time is prompted: "https://www.graecolatina.de/login.php?msg=wrongpassword" Perhaps this helps to find a solution?? Thanks already now for help. |
||||
|
Excuse me for writing: 'In the address at the same time is prompted: "https://www.graecolatina.de/login.php?msg=wrongpassword" .' This was accidental. But the problem remains unresolved. |
||||
|
This is off-topic, but I think you should know: Your menu switches to the mobile menu too late, i.e. only when the 4 right-hand menu items are already cropped and no longer visible. Here is how to adjust the switchpoint: https://4hundert.de/rctips/mobil... |
||||
|
Thank you, Micaelo, for your counsel. But changing the switchpoint had no effect on the behaviour of my protected page. The loginpage always shows the message "logged in.", but doesn't go to the page, I called by the menu-item. |
||||
|
Gottfried, can you send me a .rcd file with the parts of your site where this happens for you? (See on this website support -> contact, there is also an email adress written on there) Also, what browser and PHP server version are you using? |
|