Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
login.php

markkuan
Registered User
Quote
2021-04-20 04:46:37

$_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"?


niko
Moderator
Quote
2021-04-20 07:09:01

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.


Gottfried
Guest
Quote
2023-11-25 22:19:34

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.


Gottfried
Guest
Quote
2023-11-26 18:41:58

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.


micaelo
Registered User
Quote
2023-11-26 19:38:04

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...


Gottfried
Guest
Quote
2023-11-26 23:14:55

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.


niko
Moderator
Quote
2023-11-27 07:05:46

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?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact