January 23rd, 2013, 06:23 AM
Login form text help
I have got a login page and after I log in, it takes me to a page I set in the coding which is great but I want to display some text or have a popup box saying I have successfully logged in, is that possible and if so how do I do it or can someone point me in the right direction please
Thank you in advance
January 23rd, 2013, 06:29 AM
You could equally issue a redirect or echo out the login form if they hit that page and are not logged in.
January 23rd, 2013, 07:11 AM
checking the standard session values doesn't work, because that doesn't tell you if the user has just logged in.
You could simply pass an URL parameter saying "login=true" or something. Of course you could do the same thing with an extra cookie or session value, but I find that kind of oversized. You'd also need to explicitly remove it after the first visit.