close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

losing session after $GoTo redirect

Thread began 4/10/2020 8:07 am by lr_leal239405 | Last modified 4/10/2020 12:18 pm by Ray Borduin | 506 views | 5 replies |

lr_leal239405

losing session after $GoTo redirect

Whenever I go to an external file that, for example, handles inserting something into the page, or even when I don't go go to an external page, but within the page itself I want to redirect to go to an anchor within the same page, I Lose My Session..... so that the selections and entries made on the form are not maintained. I tried using exit() and session_regenerate_id(true) but it's not working. You may know a lot more about it than I do. Is that something you know the answer to? Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

Can I see an example page. If I had a url with steps to reproduce and ftp access then I could see what is going on. It could be a server configuration issue or an issue with your code on your page, but it is impossible to say without debugging it directly and seeing what exactly happens and why.

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

lr_leal239405

Sorry, it's hard to give access to that page. It's dependent on a login session that I can't do at the moment. But it's in the Server Behavior $GoTo redirect line after inserting or deleting and redirecting to the Form page.

$InsertGoTo = "page_g.php#optionaldiv";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertOptQuery->redirect($InsertGoTo);

The fields become blank again when back on the page. The $Session variables are lost. I thought there may be something generic that would be a quick fix. If not, I'll see if I can give access some way. Thank you.

Sign in to reply to this post

Ray BorduinWebAssist

If session variables are actually lost then it might be a bad session_save_path in your php.ini file. But I'm not sure if all sessions are lost or just a particular session variable that might be overwritten. It is kind of like asking a mechanic why your car won't start and showing him the key in the ignition not starting the car without letting him look under the hood.

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

lr_leal239405

It only happens on that one page. Not throughout the website. Ok. I'll try to provide more info. Thank so much.

Sign in to reply to this post

Ray BorduinWebAssist

Then it is probably being reset somewhere. I'd have to follow the code to see where.

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