Back And Forward With Sessions?
I am working on a website which is using sessions. What I want to do, is after the user is logged in, or logged out, when pushing the back or forward button not to change its current status(logged or not), if the destination page in history change this.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Preventing Back/forward Button Form Resubmission
I have a site that is form intensive and would like to prevent users on my site from resubmitting forms when they press back or forward, which they will likely do at some point no matter how I program it. So, I am interested from hearing from people who 1) had the same need and 2) implemented something in PHP with which they were satisfied. How did you go about doing this?
Back Button And Sessions
When I create a session-based site and hit the back button I get this error: Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. How do I avoid that, or at least create a back button on my page that works like the browser's back button does? Thanks!
Back Button With Sessions
I have a set of pages that keeps track of the user by using sessions in PHP4. It works well with one major exception - using the back button produces a "Data Missing" error a lot of times.
Sessions And Back Button
I am developing a web site with a section only for registered users and using sessions to control the access to these pages. I have the problem with the "back" button of the browsers, especially in IE. When I go back within the controlled zone IE always display the message "page expired" and mozilla displaying the advise that you are trying to access to a post data page etc.. I am wondering if there is a way to avoid this "problem" a save the users to think what to do when they see these messages, letting them to go back and forth until they get out of the session.
Sessions And Browser Back Button
I originaly wrote a script that passed variables from script to script via query strings. When I did that, the user was able to use the back button to go back to previous pages and change form inputs. Then I changed my scripts to use session variables to get rid of the long query strings. Now, when the user hits the back button: "Warning Page has Expired" is what they get. Why is that?
Sessions And Losing Data With Back Button
I've implemented the FormValidator.class (recent DevShed article) on a current project. So if a user leaves out something on a form, and clicks submit, they'll get a message saying "blah is missing, use browser's back button and try again". So the user goes back and all their data is waiting for them in the form. If I try the same thing on a form page the requires a session, and they press their browser's back button, all of the data is reset on that form! Is there anyway around this?
Forward
Is it possible to forward to some page ? like forward('aPage.php');
Mail Forward
how do i forward emails from aliases. say i have an email address. foo@yahoo.com then im registered on a site. i have an alias email add there: foo@site.com then when people send their emails to foo@site.com, it will be redirected to foo@yahoo.com. how do i do this? and whats the proper term for this feature?
Getting Rid Of Forward Slashes...
I have the following string: $test = "12/12/2007" What would be the most effective way of removing the forward slashes to come up with a "12122007" result?
How To Forward A Page Using PHP
i have a code like if (...) { forward to xxx.php } now this is conditional so i cant use javascript and i also dont want to use that, how to do this in PHP, by forwading i mean opening a new page
Flash To PHP Forward To New Url
I'm trying to make a link from flash work. It may sound weird because yeah GetURL..., but I have to follow the rule allowNetworking="internal" on the emmbed tag. Inturn I can only use sendAndLoad from flash. So what I want to do is have a link in flash call a php file using sendAndLoad. I have that all working now here's the hard part. I need the php file to then take the url var I sent and go to that url. I have tried header(location...), meta refresh, javascripts and auto submit form none of these work from the flash peice, but all work when I go straight to the php file. The problem occurs because all header info and html info have already been loaded. Does anyone know of a different way to make the php file go to a new URL?
Possible To Forward If-expression In Variable?
I would like to forward an expression to an if-statement via a variable. Like: $a=10; $b=20; $expr="$a > $b";#this should be my if-expression if ($expr) do something;#test should be if($a > $b) Of course this does not work, as $expr is simply determined as being true. Is there any chance to get this working?
Forward POST-variables
I have a form which should be submitted with either of two actions. Tried with javascript but this seems unreliable. Now looking at php and a processor page as the action of the form (process.php) which then sends the user to the different actionpages...can't figure out how to forward the post-variables to the different pages. Code:
Forward A URL And Change A Component
I've just had to move a MediaWiki installation from one area of my site to a subdomain on another area. I need a way to forward URLs, so that whenever anyone requests a URL for the wiki at the old location, they are automatically forwarded to the URL on the new location. The system would need to add a subdomain, but also change the article pointer. For example: Code:
Determine A Forward Email Addy
i have an application that sends out mail from flash. in each mail there is a link for the viewer to click on. when the viewer clicks the link blah.php?email=email@address.com it updates the database adding their email to the list of people who have clicked that link. i want to be able to track emails that have been forwarded. the problem is if someone forwards, it will forward with their email attached to the link instead of the recipients. is there any way i can grab the recipients email and put it in the link?
How To Make Pages That Auto-forward?
I made a form that someone can fill out ... then when he's done(provided everything was filled in properly) I want him to automatically to be taken back to the main page. (preferably after a 5 second delay or so) I was just curious if this is possible in php. I've seen it done in javascript, but I dont know javascript very well.
Forward Email, Change Sender Address
Is there anyway I can set up a personal 'remailer' type of thing on my domain ? I can not email a friend at his workplace because his company have put a 'block' on emails from my work address (the companies we work for are considered rivals) - I am after a way to 'bounce' or forward an email, so my originating address isn't shown. I have tried email forwarding (in CPanel) using addresses set up in my domain but when they forward, the original sender is shown, therefore the block applies. I have also tried using Bigfoot but again, the original sender is shown. Is there any way, using PHP or otherwise, that I could somehow receive a message sent to an address in my domain, and forward it on with a different "from" address ? (There would only be 1 specified address that I would want to forward on, to prevent abuse!) i.e. from xxxx@company1.com => xxxx@mydomain.com, this then forwards the original mail but from xxxx@mydomain.com => xxxx@company2.com Unfortunately webmail isn't an option as we don't have web access at work, and it has to be sent through the work Email system, Outlook.
Fieldforwarder PHP Script Doesn't Forward Fields The Second Timearound
I'm new to this newsgroup and have tried to search through the archives first, before posting this question. I don't think it has been addressed before. Also, this question is about a script I found on zend.com, and I have also emailed the author of the script, unfortunately without any replies sofar. Here goes: I am working on a website for pizza delivery. Through this website people need to be able to order a pizza or pasta online. The ordering proces will be a form with multiple pages. The visitor will be guided through the menu in 5 steps. Step 1 being the pizzas, step 2 the pastas, and so on. On each page there is always the possibility to add an "side-order" to their order. So, on the right is always the same list of side-orders. I am using a script called fieldforwarder.php (see this page for the script: http://www.zend.com/zend/spotlight/...e7.php#Heading9) It works perfectly, however one challenge still remains and it has to do with the side-order. I think it has something to do with the fieldforwarder.php file. The side-orders can be choosen during any step. So, if one chooses a side order in step 1, it needs to remain chosen in the following steps. I have this working, by using if statements. One pulldown menu in the side-order menu looks like this: <select name="italianchefsalad_junior" class="orderpulldown" id="italianchefsalad_junior"> <option value="0"<?php if ($italianchefsalad_junior==0) echo "selected"; ?>>0</option> <option value="1"<?php if ($italianchefsalad_junior==1) echo "selected"; ?>>1</option> <option value="2"<?php if ($italianchefsalad_junior==2) echo "selected"; ?>>2</option> </select> Although starting from step 2 the code looks this actually. Well, it does work in a way that it shows me when i clicked something in the side orders on the first page. However, when i try to choose something in step 2 (or 3 or 4 or 5) it won't "remember" it. I guess that the fieldforwarder.php file doesn't check for changes in fields, it already has indexed? I'm not quite sure, because the code of the file is a little bit too advanced for me. Hopefully someone on here can help me out. I really hope so.
Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example: www.mysie.com/a.html www.mysite.com/b.html www.mysite.com/c.html www.mysite/x/y/z/mainpage.php Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?
Forward To Page Alongwith Variables In POST
How to forward a page to another page alongwith the parameters passed into it I mean I have page a.php which is called with some parameters in $_POST and I require to pass these to another page with same variables in $_POST
Setting Up A Forward Apache Https Proxy
I can't figure out how to setup a forward https proxy in apache. Here is what I have tried: Code: <VirtualHost *:443> ServerName server.com DocumentRoot /path ProxyRequests On ProxyVia Off AllowCONNECT 80 443 SSLEngine on SSLCertificateFile /etc/apache2/ssl/apache.pem #<Proxy *> #AuthUserFile .htpasswd #AuthType Basic #AuthName "private" #<LIMIT GET POST CONNECT> #require valid-user #</LIMIT> #</Proxy> </VirtualHost> I've tried it with and without the commented section, and tried various other combinations of commenting and uncommenting various parts of this. The only way I have gotten it to work is to comment out SSLEngine on, which defeats the purpose of what I'm trying to do. I've also tried to use several different combinations of the SSLProxy* functions, but have had no luck with that either. Could anyone point me in the right direction? The apache documentation hasn't been too helpful for me and I can't even tell if what I am trying to do is supported or possible.
Creating User Sessions W/out Using Sessions
I'm working on a user management system where I can use the benefits of PHP sessions w/out messing with them. Basically, my idea is to have an entry created into a "sessions table" when the user logs in. The table contains such info as the user's id number and the date/time they logged in. When the user logs out, the entry is deleted. In each page/script, it checks to see if the user is logged in by checking the sessions table for an entry w/their IP address and the date, to make sure it is fairly current (unless anyone can think of a better way to check). Now my delema....obviously, I don't want people that don't properly log out to have a session that could last weeks (depending on when they visit again). I am thinking a script that cleans up entries that are old would do the trick, but obviously I want this script to run say, at least once an hour. Obviously, I am not going to be able to sit at my computer and run this script every hour of every day. I was thinking of using the script and doing a cron job, but I think my host only allows one cron job per day...and only at night. Any thoughts??
Getting Back To Where I Started.
I use a login script and since it's accessable from every page on my site I would like the user to go back to the place where he started. I use a template file in which the loginfields are placed and where I call a different .inc for each other page, so it doesn't make sense to hard code the 'gobackurl', is there a function to retrieve the pageurl from where the user came or another solution, let me know?
Welcome Back....your Last Visit Was...
I would like to add a feature to my site on the main page that says the following: Welcome back, Joe user! Your last visit was July 20, 2002. I figure I could do this by using sessions (which I plan to use for other tasks anyway) and inserting/updating info in a table for user_sessions, but how would I (in PHP) get the last visit info (assuming the user has already logged in)?
Back Function
how to create back url that will by inteligent, I mean ll go back independet from with page you came?
1 Form To Another And Back
how can i have a form with submit button open in a new page from where i select some options and sends and refresh data from this new page back to the old one Code:
Back After Logout
I have created a web in the 1st page. User can login. After login i start the session and save it in his db-record. Also the page give a link to my important page. In that page I check the saved sid and current sid. If both are equal, it will display some details, that page have the logout link.when user click that link. The logout.php will work. It generate a new sid for the same user. my problem is after logout when the user back from logout.php it will show all contents of the my important page. If refreshing that page it didn`t show anything. So how can i make sure that when the user back it automatically refresh the page.
BACK Problem
I have a page that takes some parameters. They are used to add items to a cart: add_cart.php?itemid=1234&vid=9876 This takes me to the cart page (as in "View Cart" page.) The problem I have is that if I click on the BACK button, I get another (of the same) item added to the cart because "add_cart.php?itemid=1234&vid=9876" is executed again.
Back Link In Url
i have a page where the user needs to be logged in in order to use it, so if they are not logged in it sends them to the login page. once they login it should send them to the page they were trying to go to. the problem is that the url keeps the login page and just adds the new url at the end. here is the code any ideas? PHP Code:
Back Button
I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the user comes back to a page where he had a submitted POST data the browser keeps telling that the data has expired and asks if repost. How to avoid that? I tried registering all POST and GET vars as SESSION vars but it also has its disadvantages...
Getting HTML Back!
I have a record in a database which contains 'The Enter Key' (moving down a line) in it a couple of times. when i fetch it and echo it on a page, it is like it has changed them for spaces... can anyone give me code to re-HTML it?
Different Back Grounds
i have a dating website so when a member signs up they get there own profile page almost like every other dating site out there what i what to do is give them the option to change there profile page template to other templates i will have up for them can anyone tell me how this can be done?
Back Button Problem
On my development site: http://beta.deluxeportal.com/index.php I'm having some strange problems with the back button... For example, if you try posting and leave out a message, you get an error. You can press back to return to the posting page. This is how it works on most pages, and this is what I want. However, on a very select number of pages (the login page, and the search page), if you get the error message and press back, you still get the screen with the error message. Then, the next time you press back, you are completely taken out of the page. I haven't been able to figure this out, as I can't see anything that makes those pages different from the others.
'Back' Page After Logout
I'm using HTTP authentication as my login mechanism, and I'm having problems with the logout. It appears to work (as in I get the right message when I've logged out) but pressing the 'Back' button gives me the information on the previous page as though I hadn't logged out at all. 1) Does $PHP_AUTH_USER not get cleared when a "401 Unauthorized" is encountered? 2) Is there any way to force the logout to apply to previous pages (I'm thinking using sessions or cookies perhaps), or do I have to get the user to close the browser window?
Disabling The Back Button
I have a form that is to be filled. The summit button call a php script that populates a database. Is there a way to make sure that if someone click on the back button on the browser they do not get a chance to send the same form again.
Back Button On Your Browser
My question is based around back button on your browser . Currently I have a form that feeds it's information into a MySql database. I give my users the ability to add, edit, and delete entries. Because of this I use actions on my submit button, ( if action=edit) {blah blah blah} else blah blah If a users make and addition everything is fine, butif they press the back button, the action is carried out again. (because the action is in the url (www.blahhblah.com/form.php?action=add) this puts duplicate entries into the database, which is easy to fix, but annoying. Is there a way with PHP to force the timeout page everytime they try to re-enter the form from their back button?
$_POST And $_SESSION Back And Forth
I was fighting a bad case of session persistence and found a solution but need to be reassured about is reliability $dir=$_SESSION['dir']; //echo"dir.$dir.<br>"; if ($_SESSION['dir']=="") { $dir=$_POST['dir']; $_SESSION['dir']=$dir; $dir=$_SESSION['dir']; //echo"dir2.$dir.<br>"; } else { $dir=$_SESSION['dir']; //echo"dir3.$dir.<br>"; } forgot stating that the problem was when the original file passed a POST value to other files and then going back to that original file from other locations.
How To Switch To Ssl And Back Again From Same Php Script?
In one of my apps I handle many functions and pages as opposed to separate scripts for separate pages. Most of the work is non-SSL and works just fine. However, when I am delivering pages with sensitive information the form action parameter references the full URL including the https:// to force the server to process with SSL. This seems to work just fine although there is most likely a better way to do this. Now, my question: Once the SSL part is done and the next page is to go back to non-SSL, how does one deliver the next page non-SSL because the current link is under SSL? Also, to add one more poker to the fire... the SSL site is NOT the same site as the non-SSL site although they're on the same physical server.
Problem With Back Button
On submitting a form a php script is called to validate the form. I did the validation with javascript code integrated in the php script. I know its not the proper way to do the validation but... The problem is that if I dn't fill in the form..and click on the back button..the validation script is executed and i got an error message popup.I want the validation script to be executed only when I click on the submit button.Is this possible? But still I must use the form action so that I could retrieve the values in the validation script.
History Back Link
how do I create a history.back link with anchor, say #anchor? is there an easy way to do it with just: javascript:history.back(-2)#anchor or do i have to use php? i'm thinking i have to do something like onclick="<? some php code ?>#anchor" how do i grab browser history to redirect the user back two pages?
Back Tick Problem!
I have problem with following commands, code here.... $str=`php -v`; echo $str; it prints the output as PHP 5.0.4 (cli) (built: May 9 2005 11:21:11) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies $str=`whois yahoo.com`; echo $str; No output is coming in browser; but when tried in terminal it shows the output of whois.
Back To Previous Page?
is it a way that we can have "go back" to our previous page? cos normally when we use back command in our IE or NS. we should have this error message appeared Warning: Page has Expired blah blah blah.. so how should I program so that i can "go back" e.g: i got two php, fromhere.php and cominghere.php is there anyway that i can do in order to reach the page "fromhere.php"?
BACK Button In Browser
I would like the browser to refresh the page when I'm clicking BACK button. Does anybody know how to do that?
Browser Back After POST
I got an annoying problem using the POST-method to send a form's data: I put a login-form on the page which is sent by the POST-method to itself. After that the content of the POST-variables will be checked (!empty($_SESSION['xyz'])) and the rest of the page included. In order to show some informations (e.g. "Welcome John Doe") and becoming independent of specific POSTs, the data is also written to SESSION-variables. Now if I go to another page (by link) and after that back to the login-page by the browser's "back"-button, it cannot be displayed ("The page cannot be displayed..."). Only if I actualize the page it is displayed regularly. I know that this problem doesn't appear by using the GET-method, but because of security reasons I have to use POST. So what can I do to fix that problem? I don't want to disable the browsers back-button (or use some JavaScript).
Form Reset When U Go Back
How do i stop reseting form inputs..when u go back in the browser I use sesession before printing forms. Session is just check whether user is login or not if they login then redirect to member section if not show the form. When you enter login information and if it is wrong .user need to go back and resubmit the login information. When u go back u need to type all information again which is just wasting time.
Back Button And Get Request...
I've made a script for managing shoppingcart (something like cart.php?action=add&item=12345) and it works fine, the problem is: when user hits the back button page after he added something in the cart, the add cart script is rerun and he ends up with having 2 of the same item. Is there a way to prevent script from running when accessed via back button?
|