Page 1 of 1

Returning To A Page After An Update

Posted: Thu Oct 13, 2011 7:37 pm
by PastorHank
Sorry if this isn't the appropriate area to post this in and I'm not sure how to word this question.

In my program I call a separate file when I want to update my tables. What I would like to do is after the update have my program return to the page that it originally came from. I use session variables at the start of the original program to verify that the user is authorized to be there, so what's happening now is for some reason I lose my session variables and the program sends me to my 'you're not authorized to use this' page.

I've tried googling a bunch of different terms to find a solution but so far nothing. Does anyone have a link to some information on how I can handle what I think is a post back situation?

thank you

Re: Returning To A Page After An Update

Posted: Sat Oct 15, 2011 9:16 pm
by jraede
Do you have session_start(); at the top of your update handler?

Re: Returning To A Page After An Update

Posted: Fri Dec 16, 2011 1:19 pm
by Live24x7
Could you workaround this. I am facing a similar situation.

Someone has suggested i use, history.back() DOM object for this using javascript.
Not tried this so far though.