close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need help with redirect

Thread begun 10/11/2011 9:35 am by johna1964 | Last modified 10/13/2011 10:13 am by johna1964 | 1679 views | 7 replies |

johna1964

Need help with redirect

Hi!

Currently I have a link that redirects the visitor to the order history page if the visitor is logged in. When the visitor is not logged in the link redirects to the log in page. Once they have logged in the conditional statement allows them to access links to view order history, update profile, ect., as a should, with no log in form on the page.

What I need is if the visitor is logged in, the link needs to redirect to the log in page without the log in form - only the options ie view order history, update profile, etc.

As it stands, if the visitor is already logged in, the link is directed to the log in page with the log in form instead of their account access.(local testing)

What do I need to do to change this so that when a logged in visitor selects the Your Account link the will redirect to the log in page with the conditions of log in met?

Thank you!

johna1964

Sign in to reply to this post

Jason ByrnesWebAssist

send me your login page please.

Sign in to reply to this post

johna1964

login page

Here is the log in page...

The link on the horizontal menu bar > account access> your account.

home.php

Thank you!

Johna

Sign in to reply to this post

johna1964

Should I create a new page with those visitor account access options and use a grant access if logged in to redirect to the new page?

Is this making any sense?

My apology - my verbiage may not be clear.

Thank you!

Johna

Sign in to reply to this post

Jason ByrnesWebAssist

try adding the following code at line 1 of the login page:

php:
<?php @session_start(); if(isset($_SESSION['UserID']) && $_SESSION['UserID'] != ""$_GET['loggedIn'] = "1"?>
Sign in to reply to this post

johna1964

Nope

Jason,

It's not working... I went ahead and uploaded it to the server anyway with the menu link linking to the log in page it. Maybe it would be easier to understand if you can see it in action...

I think it is better to have to log in twice rather than not have a way for the visitor to update their profile, but I would sure like it if they would be sent to their specific options without the need to log in the second time...

If you can think of anything else to solve this, that would be wonderful...


Thanks!


johna1964

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, I had the wrong session name in my previous reply.

the code should be:

php:
<?php @session_start(); if(isset($_SESSION['SecurityAssist_UserID']) && $_SESSION['SecurityAssist_UserID'] != ""$_GET['loggedIn'] = "1"?>
Sign in to reply to this post

johna1964

Thank you!

Worked like a charm...

Have a beautiful day!

Johna

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