How can fix to redirect after login to the page? |
Post Reply |
Author | |
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
Posted: Dec 07 2016 at 2:57pm |
Hi! OE team.
My page structure is Homepage(summary page) ---> system status page ---> laser status page --->...and so on The homepage is protected by Packs #50: Protect a page. Every page is build on BaseLayer which has Packs#20: 'Mini-Login' form. My question is that: 1. If I logout from 'laser status page' using Packs#20 and login again, the page goes to 'laser status page' 2. How can I redirect the page to 'Homepage' after login even user logout from any page beside 'Homepage'??? 3. In other words, At 'system status page' ----> logout from Packs#20 ----> login from 'user-login(connect)-v1' page ----> to 'Homepage' after successful login Thanks in advance, DJ Joo |
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(1)
|
Hi,
By default the login page should redirect to the homepage. Check the corresponding parameter in this Pack's configuration (on the top of the login page). Why do you have the mini-login form on every page? Is it really necessary? |
|
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
|
1. Yes, the configuration of 'Page to open by default after login' of [20 - For 'Login' page (PK1)] is "index.php"
However, if I logout from not index.php but the other page such as 'status.php' and login again from login page, the page after login is redirected to the page that is not index.php but logout page. 2. Sorry, it is my confusion. It is not 'mini-login form', but the packs in the BaseLayer is [61 - 'Show User' element: several format (PK7)] The reason why pack[61] is installed in BaseLayer because my Web App is network mornitor and control app for device, so the login user can logout anytime when he/she has done his/her job from any page. In summary, if user logout from some page not index.php using the logout link of packs[61] and login again from login page, the redirect page is not index.php but logout page just before. Thank you, DJ
Edited by djju1029 - Dec 09 2016 at 1:27pm |
|
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
|
For example, if user logout from '/Advance/Advance_main.php', then the redirection of login page on the address bar of browser is:
http://192.168.1.56/oe-users/user-login(connect)-v1.php?oeredirect=Advance/Advance_main.php&oelogout=1
|
|
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(1)
|
I propose you a workaround.
On the login page, you can add a simple PHP script that checks whether there's the "oeredirect" parameter specified, and no other parameters except eventually "oelogout", and reload the page without "oeredirect". On the login page, add a Code Block (Source) type PHP position StartDocument:
|
|
djju1029
Senior Member Joined: Aug 02 2016 Location: the US Status: Offline Points: 126 |
Post Options
Thanks(0)
|
Thank you so much. It works!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |