Returning To A Page After An Update

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
PastorHank
Forum Contributor
Posts: 117
Joined: Sat Jun 03, 2006 7:58 am
Location: Texas Hill Country

Returning To A Page After An Update

Post 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
jraede
Forum Contributor
Posts: 254
Joined: Tue Feb 16, 2010 5:39 pm

Re: Returning To A Page After An Update

Post by jraede »

Do you have session_start(); at the top of your update handler?
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Re: Returning To A Page After An Update

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