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

Login Access

Thread began 3/22/2012 1:26 pm by Magega49 | Last modified 4/23/2012 12:43 pm by Jason Byrnes | 1971 views | 19 replies |

Magega49

Login Access

Hello,

Can you please tell me how can I set user after they logging to be redirect to the last page that they were at tenting to access... Please

For example if a user went to contact us and it were sent to logging page I want him after logging to back to contact us page..

So, every time user is in a different page he should be going back to the same page after logging success... Please.

Sign in to reply to this post

Jason ByrnesWebAssist

is the user clicking a link to the login page or being redirected to the login page based on an access rule?


if its a link, add a query string variable to the login page that contains the current page>


php:
<a href="login.php?accesscheck=<?php echo(htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">Log in</a>



in the authenticate user behavior make sure the Go to Previous page option is checked.

Sign in to reply to this post

Magega49

Thanks

Ok, Thank You.. I will try it.

Sign in to reply to this post

Magega49

Logging Redirect page

Hello,

Please take a look to my logging page... accounts_login.php?accesscheck=%2Fecart_checkout.php%3F

when you logging it just go some where alse...

I mm trying to set it to go to the last page it came from but it dont work for me.

Sign in to reply to this post

Jason ByrnesWebAssist

use the following code for the action ofthe login form:

php:
 action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlspecialchars($_SERVER["QUERY_STRING"]):""?>"
Sign in to reply to this post

Magega49

new line

Jason where in the login page I have to put the new code???

Please..

I dont know where to added

Sign in to reply to this post

Jason ByrnesWebAssist

the form tag, for the action.

Sign in to reply to this post

Magega49

What letter beging with because I dont see it???

Sign in to reply to this post

Magega49

Repply

Jason it is relly important for me that people that click on logging return back where they were coming from???

Please help

Sign in to reply to this post

Jason ByrnesWebAssist

send you login page and i can tell you what to change

Sign in to reply to this post
loading

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