How to new a session with program?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I use VS2005 to develop asp.net program.
I want to get a string from WebService in the Session_Start.

But it often wasted a long time to get the msg.

I want to new a Session in the application start, and the Session check if a
new message form WebService evey 1 hour.

How can I new a session in program?
 
You cannot programatically start a session. A session is a per user thing
that starts when a user acesses the website, each user has their own unique
session.

What are you trying to acheive.
 
The Session object is designed only to persist objects between page requests
by the same user, it will not help you to "Get a new message every 1 hour".
Peter
 

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

Back
Top