Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...(I) have been able to get my problems solved from past messages and also new posts that other users have responded to promptly..."

Geography

Where in the world do Tek-Tips members come from?
richwms (Programmer)
7 Jun 12 21:34
I am using the following code in the header of the pages on a web site: Session("backPage") = curPageURL()
I want to capture the URL of the page the user is looking at.
Then when they click on a link on the header, it transfers them to another page. When they are finished with the page, I want to transfer them back to the prior page the user was looking at.
When I do a Response.Write "backPage=" & Session("backPage") in the header, the actual URL is displayed. However when I do a Response.Write "backPage=" & Session("backPage") on the linked to page, I get a null value. What am I missing?
Regards, Richard
ChrisHirst (IS/IT--Management)
8 Jun 12 6:44
No idea, are you reinitialising the session variables on loading the next URL?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum

emozley (TechnicalUser)
6 Jul 12 9:11
It looks like you are trying to assign a client side (javascript) value to a server side session variable which as I understand is never going to work.

The way I got round to this was to write a little AJAX function to POST the current URL off to my ASP code which would write it to a database (or in your case assign it to a session variable).

If you want more help along these lines let me know.

Thanks

Ed

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close