John
John

Reputation: 175

how to create session in asp

how to create session in asp??

I am using this in my PHP code

Here is my php session

$sid = CreatePSession();

Now I want to use this in asp how it is possible ?

Upvotes: 0

Views: 2363

Answers (2)

Mikael Östberg
Mikael Östberg

Reputation: 17156

It is a simple as assigning a value like this:

Session("mySessionKey") = "My value"

The Session collection is globally accessible. As is the Application collection which pretty much works in the same way with the difference that it is application spanning.

In your PHP code, you are calling the CreatePSession function and what that returns is something you have to check in order to do the same thing in ASP. My guess is that it is giving you a userId or something.

Upvotes: 3

Chief
Chief

Reputation: 914

Please use this to create asp session

Session("test")="anyvalue"

Upvotes: 1

Related Questions