This topic is locked

How to hyperlink to another page but staying Logged-In?

11/2/2007 9:00:49 PM
PHPRunner General questions
R
runnerPHP2008 author

I am getting the error:
Your session has expired. Please login again.

Sergey Kornilov admin 11/5/2007

Users are not logged in automatically after the registration. You may want to use AfterSuccessfulLogin event for this purpose.

R
runnerPHP2008 author 11/6/2007

I am using the AfterSuccessfulLogin event that points to a custom .php page after logging in. I am not talking about after registration.
I want to create a link on this custom .php page like this:

EDIT YOUR AD
when you click this link, you should be taken to the EDIT page for whatever User is logged in.
What include files should I have on this custom .php file and what are the variables that should be included in the hyperlink? What should this hyperlink look like?

Sergey Kornilov admin 11/6/2007

It all depends on your database structure.
I recommend you to proceed to the Edit page and copy and paste the URL to the new PHP page your developing.

R
runnerPHP2008 author 11/6/2007

The only problem with cutting and pasting the URL to the new PHP page is that I need this function to be dynamic, meaning that the link changes its destination depending on the users that are logged in.
How can I check for the current logged in username or ID and pass that as a variable in the hyperlink?

It all depends on your database structure.

I recommend you to proceed to the Edit page and copy and paste the URL to the new PHP page your developing.

J
Jane 11/7/2007

answered in another thread.