close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Back to last page after login success

Thread began 7/25/2021 10:07 pm by Rokon | Last modified 7/26/2021 10:34 am by Ray Borduin | 23 views | 0 replies |

Rokon

Back to last page after login success

Hi

Can you pls guide me for below situation.

I have created my login page by using MySQLi login user (not using the security assist) and after a successfull login I need to push back the user to his last page from where he came from, like he clicked to acces the login page from a page called index.php or sometime hadith.php and once the user login is success then the user should back to the respected page automatically.

I can grab the users present url location by

php:
<?php

    
echo (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' "https" "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
    
?>

but can't figure out how to push user back to the grabd location.

=======
UPDATE
=======

I figured it out how to do this which as below on the index.php page;

html:
<a href="/user/login.php?accesscheck=<?php echo ($_SERVER["PHP_SELF"].(isset($_SERVER["QUERY_STRING"])?"?".htmlentities($_SERVER["QUERY_STRING"]):""));?>"</a>



And on the login.php page added as below
===============================

php:
<?php require_once('../webassist/security_assist/helper_php.php'); ?>

<?php
@session_start;
if(isset(
$_GET['accesscheck'])) {
    
$_SESSION['WA_FAIL_login'] = $_GET['accesscheck'];
}
?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...