» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2006, 01:46 PM
vandort vandort is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandort is on a distinguished road
Default clear session variable

I have a form submission page that I am using some session variables that are created on the page in order to keep track of the information that they have already inputted - so when they click submit if there are any errors the fields that are correct remain populated.

However, I am wondering is there a way that if they navigate away from this one page all the session variables that are created are removed so if they come back to the page they need to re-enter the information?

Something like "on page exit - remove session("name")..." ? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-11-2006, 01:48 PM
6and9 6and9 is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
6and9 is on a distinguished road
Thumbs up

If you can somehow notify the server that the user has navigated elsewhere, then you can use session.content.removeall (I think that's the proper syntax, check the documentation).

The hard part will be letting the server know about the change in navigation, you'll have to somehow post or ajax something back to the server when the user navigates.

bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
session variable overwriting euhoria PHP Programming and Tips 2 08-22-2006 01:01 PM
Security Safe PHP Session Setup waugh PHP Programming and Tips 2 08-03-2006 05:03 PM
New session not generated furious PHP Programming and Tips 1 08-01-2006 04:51 PM
assigning a session variable.... kingfisher ASP forums and Tips 1 06-23-2006 01:59 PM
stop indexing PHP SESSION IDs danielle Yahoo 4 03-26-2006 05:34 AM


All times are GMT. The time now is 11:56 PM.