Grabbing a session ID

M

mscir

L

Long - CM web hosting

: I need to grab a session ID, which is part of a URL, and then incorporate
: this URL in some HTML code. Is this possible?
:
: For instance the browser address bar will display something such as:
: http://www.someaddress.com/sessionid=123456&restofURL=abc. I need to grab
: the session ID number and then use this number in some generated code.
:
This may or may not help you, but you can do this easily using the CMS template and
custom tags system provided at webcharm.ca. I use this to grab the value of any query
string variable.

<!--@qsvalue sessionid@-->

When the page containing this tag is processed, it resolves to 123456.

Long
www.webcharm.ca - Integrated content management web hosting
 
B

Beauregard T. Shagnasty

Quoth the raven named Long - CM web hosting:
: I need to grab a session ID, which is part of a URL, and then incorporate
: this URL in some HTML code. Is this possible?
:
: For instance the browser address bar will display something such as:
: http://www.someaddress.com/sessionid=123456&restofURL=abc. I need to grab
: the session ID number and then use this number in some generated code.
This may or may not help you, but you can do this easily using the CMS template and
custom tags system provided at webcharm.ca. I use this to grab the value of any query
string variable.

Please don't mention that BernieH would have to move his entire web
site to your hosting service for this advice to be of any value.
 
H

Hywel Jenkins

: I need to grab a session ID, which is part of a URL, and then incorporate
: this URL in some HTML code. Is this possible?
:
: For instance the browser address bar will display something such as:
: http://www.someaddress.com/sessionid=123456&restofURL=abc. I need to grab
: the session ID number and then use this number in some generated code.
:
This may or may not help you, but you can do this easily using the CMS template and
custom tags system provided at webchuck.ca. I use this to grab the value of any query
string variable.

<!--@qsvalue sessionid@-->

Spam. Avoid at all costs.
 
B

BernieH

TIA for all replies. It has to be client-side, and using standard tools such
as HTML or JavaScript (since I don't have experience with anything else -
and only a very little of JavaScript, at that.
Server-side or client-side? Which language?

BernieH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top