gBase Posted October 19, 2006 Share Posted October 19, 2006 Hi, I have a PHP/MySQL app that users login to with a server-side login (not application-side.) What would be the best way to have them logout? I would like to have a link to a 'logout.php' page (easy enough,) but what is the proper php code to say 'if the user hits the back button, they will be redirected to the opening page' (and therefore prompted to login again.) Since the login is server-side (.htaccess,) hitting any pages within the directory of the application will need a login the same as the home page. Thanks for any help. :) Quote Link to comment Share on other sites More sharing options...
printf Posted October 19, 2006 Share Posted October 19, 2006 you can't...You can try being creative, but it will not work unless the server has a session logout function, which none do but one!me! Quote Link to comment Share on other sites More sharing options...
gBase Posted October 19, 2006 Author Share Posted October 19, 2006 Out of curiosity, what server would that be? I'm using Apache. Quote Link to comment Share on other sites More sharing options...
printf Posted October 19, 2006 Share Posted October 19, 2006 Sambar, Linux or Windows, it does just about anything Apache can do, the only thing it doesn't have is mod_rewrite, but if you ask Tod, he will write any htaccess based rewrite rule set you need. It's got a pop/imap/smtp mail server, with webmail, ftp/s server, webdev, versioning system, cron task system and support all the ways that Apache supports in regards to htaccess rules, plus direct embedded db layer, so you can authenticate server users with your favorite database, and a admin panel so you manage the server and all vhosts in real time, just like CPanel, but better because it's embedded into the server!me! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.