Jump to content
PineSmokes

Method for removing statement at end of new url on logout

Recommended Posts

Main issue is I'm using this header page to display my login and signup with code and all so I had to change the header("Location lines from permanent to self, when they were permanent that was how I was going back to the "main" page (wiping the statement variable away).  Since my new method to make it universal directs to self it always keeps those variables I used to drop which in turn leaves up messages I wish weren't there sometimes.

I didn't think I had explained it properly the first time,  hopefully there is enough information to find any sort of solution, thanks.

Share this post


Link to post
Share on other sites

Does it seem like a good idea at all to place a variable on every page with the link to itself that way in the header I can use the variable I set on the page that loaded the header, I could make it a session variable even $_SESSION['url'] then call it like:

header('Location: '.$_SESSION['url'].'?activationsent=1');

Seems to be working fine, guess I solved this one by myself today :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.