Session variables lost when http goes to https. Add to link?

This is a discussion on "Session variables lost when http goes to https. Add to link?" within the Classic ASP section. This forum, and the thread "Session variables lost when http goes to https. Add to link? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 13th, 2005, 11:57
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Session variables lost when http goes to https. Add to link?

I am using a session variable

mylogo = Session ("refer")

I am sending the variable via web form. But the form is on a https secure server and the session is closed when changing servers.

Would it be possible to add code placing the ref= variable in the hyperlink to the form ? ?

Something like this maybe (but not that cos it doesnt work!)

Code: Select all
http://form.asp?ref=<% response.write("mylogo") %>
Or what are the alternatives? I would like to avoid using a DataBase but if it has got to be done . . . . .
Reply With Quote

  #2 (permalink)  
Old Jul 13th, 2005, 15:28
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Just put ?ref=mylogo

THen use the Request.querystring to retrieve it. IF you want to write it, you can always do

Code: Select all
Response.Write(Request.Querstring("ref"))
Reply With Quote
  #3 (permalink)  
Old Jul 19th, 2005, 11:30
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
.
?ref=mylogo is not being accepted :: Page Can Not Be Displayed HTTP 500 Internal Server Error

However using a number ( ?ref=2 ) instead of 'mylogo' does work. Is there a way around this?
.
Reply With Quote
  #4 (permalink)  
Old Jul 19th, 2005, 15:20
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
.
Ok I worked it out. This is it:

?ref=<%=mylogo%>

Reply With Quote
Reply

Tags
session, variables, lost, http, goes, https, add, link

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
load script on http and not https fredski PHP Forum 4 Mar 22nd, 2006 15:46
Session variables ideleon PHP Forum 2 Feb 7th, 2006 08:04
Session Variables.... courtjester Classic ASP 11 Jul 6th, 2004 00:04
POST variables lost in the ether Owen Flash & Multimedia Forum 6 Apr 7th, 2004 11:43
Session Variables ekendricks Classic ASP 7 Aug 26th, 2003 10:42


All times are GMT. The time now is 00:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43