PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Feb 25, 2020 12:25 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Oct 13, 2011 7:37 pm 
Offline
Forum Contributor

Joined: Sat Jun 03, 2006 7:58 am
Posts: 117
Location: Texas Hill Country
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


Top
 Profile  
 
PostPosted: Sat Oct 15, 2011 9:16 pm 
Offline
Forum Contributor

Joined: Tue Feb 16, 2010 6:39 pm
Posts: 254
Do you have session_start(); at the top of your update handler?


Top
 Profile  
 
PostPosted: Fri Dec 16, 2011 2:19 pm 
Offline
Forum Contributor

Joined: Sat Nov 19, 2011 10:32 am
Posts: 194
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group