News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Login Function

Started by Folcon, February 25, 2012, 06:31:25 AM

Previous topic - Next topic

Folcon

Hi 2 all, I have one question.
I read about Login Function (<?php ssi_login(); ?>), so if I use it on my site, the page redirect to forum page, and if I go back on site the data of login form is not update, so I need use F5.
So, how to update the site page, when user is logging(and logout) without redirect to the forum page?
I use phpbb for a long time, but now I use SMF - its a great thing, thank you, guys, for a big work.

Suki

if you go to the previous page using the back button then it will indeed show the old page with old data.

you can use the redirect_to option on that function to go back to your page after login:

ssi_login($redirect_to = 'http://mysite.com')

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: