close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to remove url querystring after login

Thread began 3/26/2019 7:31 am by LWat85283715 | Last modified 3/27/2019 10:06 am by Ray Borduin | 622 views | 6 replies |

LWat85283715

How to remove url querystring after login

After a person logs in, it is passing the original parameters to the next page from the querystring. Is there a way to drop those? On my Webassist > MySQLI > User Authentication, there isn't a checkbox for pass querystring parameters or don't pass querystring paramets. Attached is a screenshot. Here is my code:

<?php
if ("" == "") {
$Authenticate = new WA_MySQLi_Auth($sdpc_i);
$Authenticate->Action = "authenticate";
$Authenticate->Name = "sdpc_login";
$Authenticate->Table = "users";
$Authenticate->addFilter("username","=","s","".((isset($_GET["username"]))?$_GET["username"]:"") ."");
$Authenticate->addFilter("password", "=", "s", "".(isset($_GET['password'])?sha1($_GET['password']):"") ."");
$Authenticate->storeResult("userID","userID");
$Authenticate->storeResult("username","username");
$Authenticate->AutoReturn = false;
$SuccessRedirect = "read2.php?page=1&verify=T";
$FailedRedirect = "error.php";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$Authenticate->execute();
}
?>

Sign in to reply to this post

Ray BorduinWebAssist

I'll have to add that setting back. For now you can edit the authentication.php file and remove this line:

$this->Redirect = $this->addQuerystring($url);

That will prevent it from adding the url parameters.

Sign in to reply to this post
Did this help? Tips are appreciated...

LWat85283715

I don't appear to have that line in my file. Attached is my file.

Attached Files
authentication.php
Sign in to reply to this post

Ray BorduinWebAssist

That is an older version of that file... I've attached a newer one. In this one you can just change the setting on the top of the page on line 49, just update this line:
$this->PassURLParameters = true;

to:
$this->PassURLParameters = false;

Attached Files
authentication.php
Sign in to reply to this post
Did this help? Tips are appreciated...

LWat85283715

Thank you so much!

Sign in to reply to this post

LWat85283715

When I used the new file that you sent, now all my login forms don't work. I just get a blank white screen. Is there a way to update my existing file?

Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP access and a URL to debug? I'll take a look and get it fixed. I'd need that to update your old file as well, but I think the best option will be to get the new one working for you.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...