Annulleret

Shell to classic ASP w/ session info

How can I retrieve the content of a classic ASP page which includes session information from the current page? There are very few restrictions, but both scripts must run on localhost. The code below will be your starting point.

I am working with IIS and classic ASP code ONLY.

1. Set session variables in http://localhost/[url removed, login to view]

2. Retrieve the contents of http://localhost/[url removed, login to view]

I don't care if you're new or experienced at GAF. I just need working code. For multiple winners, the best code (elegant & explanatory) will win the $$$.

<%

' - beginning of: http://localhost/[url removed, login to view]

option explicit

dim strURL, objHTTP, strFetch, dicDictionary

' - set session variables

set dicDictionary=createobject("scripting.dictionary")

dicDictionary("boolean")=true

dicDictionary("string")="firstname"

dicDictionary("date")=now()

set dicDictionary("strings")=createobject("scripting.dictionary")

dicDictionary("strings")("first")="first string"

dicDictionary("strings")("second")="second string"

session("test_1")="test number 1"

set session("test_2")=dicDictionary

' - show the session data:

%>

Session data from <strong>set_session_info.asp</strong>:<br>

--------------------------------------------<br>

session.sessionid=<%=[url removed, login to view]%><br>

test_1=<%=session("test_1")%><br>

test_2.boolean=<%=session("test_2")("boolean")%><br>

test_2.string=<%=session("test_2")("string")%><br>

test_2.date=<%=session("test_2")("date")%><br>

test_2.strings.first=<%=session("test_2")("strings")("first")%><br>

test_2.strings.second=<%=session("test_2")("strings")("second")%><br>

--------------------------------------------<br>

<br>

<%

strURL="http://localhost/retrieve_session_info.asp"

set objHTTP = [url removed, login to view]("Microsoft.XMLHTTP")

[url removed, login to view] "GET", strURL, false

[url removed, login to view]

strFetch=[url removed, login to view]

set objHTTP = nothing

[url removed, login to view] "Content retrieved from <strong>" & strURL & "</strong>:<br>"

[url removed, login to view] "----------------------------------<br>"

[url removed, login to view] strFetch

[url removed, login to view] "<br>----------------------------------<br>"

' - end of: http://localhost/[url removed, login to view]

%>

<%

' - beginning of: http://localhost/[url removed, login to view]

option explicit

' - begin code to retrieve session data

' - YOUR CODE GOES HERE

' - end code to retrieve session data

%>

session.sessionid=<%=[url removed, login to view]%><br>

test_1=<%=session("test_1")%><br>

test_2.boolean=<%=session("test_2")("boolean")%><br>

test_2.string=<%=session("test_2")("string")%><br>

test_2.date=<%=session("test_2")("date")%><br>

test_2.strings.first=<%=session("test_2")("strings")("first")%><br>

test_2.strings.second=<%=session("test_2")("strings")("second")%><br>

<%

' - end of: http://localhost/[url removed, login to view]

%>

Evner: ASP, IIS, Visual Basic

Se mere: shell classic asp, asp shell, classic asp boolean session variables, asp classic quot, classic asp boolean, asp iis shell, starting with visual basic, how to string, code winners, classic asp shell, set session variables classic asp, classic asp option explicit session, session dictionary classic asp, asp session iis, i need a dictionary now, how to write a contents, shell scripts, session, multiple winners, multiple winners -, data w, classic asp, boolean, explicit, working string

Om arbejdsgiveren:
( 11 bedømmelser ) Georgetown, United States

Projekt ID: #613875

5 freelancere byder i gennemsnit $69 på dette job

bisakas

Your session containing dictionary object data. So, for parsing the session value, create a dictionary variable, and set the variable to session object.

$100 USD in 0 dage
(0 bedømmelser)
0.0
Reflect

I can do it in two days.

$90 USD in 2 dage
(0 bedømmelser)
0.0
kuaikuailai123

set objHTTP = [url removed, login to view]("[url removed, login to view]") [url removed, login to view] "GET", strURL, false [url removed, login to view] =================================================== Is error,Must use POST,POST something.

$50 USD in 2 dage
(0 bedømmelser)
0.0
np101

I am an IT professional with 10 yrs experience with ASP Classic. I have very good experience with ASP Session object. I will provide quick & professional service.

$60 USD på 1 dag
(0 bedømmelser)
0.0
sntechanjali

We have read your requirements carefully and we have the technical expertise and creativity essential for creation of your website with all the required features. You will receive unlimited revisions until you are comp Flere

$45 USD in 4 dage
(0 bedømmelser)
0.0