Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Folcon on February 25, 2012, 06:31:25 AM

Title: Login Function
Post by: Folcon on February 25, 2012, 06:31:25 AM
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.
Title: Re: Login Function
Post by: Suki on February 25, 2012, 10:44:28 AM
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')