Encoding the current session into a URL string (encode_session_url)ΒΆ

encode_session_url()

Encode current session into a URL string


SYNTAX

encode_session_url(url_string)

Encode the current session ID into the url_string provided.

The session ID is generated by the create_cookie_session() or create_session() function. This function is only necessary if create_session() was used, in order to place the session ID in URLs that refer to this session on this server.

The function returns the url_string with the current session ID encoded into it. If the session was created using create_cookie_session() the url_string is returned unchanged.

NOTES

  • The web_encode() function converts any string into a format valid for URL parameters.


EXAMPLE

In this example the function is used to construct part of a print statement:

!define SREP_NAME   "/cgi-bin/nph-srep.exe"

     print " <TR><TD><A HREF=\"" + encode_session_url(SREP_NAME + "?order")

RELATED TOPICS

Creating web pages with Sculptor

Internet functions