Jump to content

[SOLVED] Cookies and Javascript?


dh526

Recommended Posts

hi everyone and thank you for looking :)

 

I have a login system where you enter a username and password, then if they are correct you are signed in. There is a Cookie called 'username' which holds the username from the sign in field.

Is it possible to do something like this :

 

If Cookie is set then

 

echo "<a href='usersignedin.php'>$username</a>;

else

echo "<a href='login.php'>Login</a>

 

 

Thank you for you help :) Any help would be much appreciated:)

 

Link to comment
https://forums.phpfreaks.com/topic/159148-solved-cookies-and-javascript/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.