deesha Posted June 27, 2023 Share Posted June 27, 2023 i want my login page to directly redirect to dashboard page when i am logging in for second time if the username and password matches with the what in the database.. but it should has to directly login without clicking login button for second time. please can somebody help me with this. i have tried several methods but not working Quote Link to comment https://forums.phpfreaks.com/topic/317013-directing-to-dashboard-while-second-time-login-without-clicking-login-button/ Share on other sites More sharing options...
EarthDay Posted June 27, 2023 Share Posted June 27, 2023 Have you got any sample code you can share? Quote Link to comment https://forums.phpfreaks.com/topic/317013-directing-to-dashboard-while-second-time-login-without-clicking-login-button/#findComment-1610042 Share on other sites More sharing options...
EarthDay Posted June 27, 2023 Share Posted June 27, 2023 1 hour ago, deesha said: i want my login page to directly redirect to dashboard page when i am logging in for second time if the username and password matches with the what in the database.. but it should has to directly login without clicking login button for second time. please can somebody help me with this. i have tried several methods but not working This link should help you to enable "Remember Me" Link Quote Link to comment https://forums.phpfreaks.com/topic/317013-directing-to-dashboard-while-second-time-login-without-clicking-login-button/#findComment-1610044 Share on other sites More sharing options...
mac_gyver Posted June 27, 2023 Share Posted June 27, 2023 the only redirect you should have on your site is upon successful completion of post method form processing code, and it should be to the exact same url of the current page to cause a get request for that page. this will prevent the browser from trying to resubmit the form data if that page is reloaded or navigated away from and back to. either integrate the login operation on any page that needs it or provide navigation links on the login page to let visitors navigate to other pages. Quote Link to comment https://forums.phpfreaks.com/topic/317013-directing-to-dashboard-while-second-time-login-without-clicking-login-button/#findComment-1610045 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.