Chris Jones
asked on
set sesisons in vb.net console app
Hello,
i have a console app and i would like to setup web sesisons for infomation i am getting from a setup table that i developed.
i have a console app and i would like to setup web sesisons for infomation i am getting from a setup table that i developed.
You mean ASP.NET session? You can't. You probably can request a page(on local web server) which can do the work for you.
ASKER
hmmm do you know how i would go abou doing that would i have to spawn a browser ?
You can do a Process.Start(url) to launch a page that can set the session. But you would need to make sure its updating the same session which may not be easy. Why do you want to do it? What's the big picture?
ASKER
ok, i ahev a process that runs and reads configurations from a database simular to the web application i have created. the web application creates sessions and sets the values based on whats in teh database on the fly. i need the console application to read the same configuration file and set some sessions or dynamic varables.
>i need the console application to read the same configuration file and set some sessions or dynamic varables.
For what? For the website to pick those up?
For what? For the website to pick those up?
ASKER
no for a sonsole app to pick them up....
ASKER
i had an ideal over the wekeend what do you guys thing of a NameValueCollection to store the valeus and i can call the collection based on key almost like a sesison......
So you want to access session just so you can save and retrieve keyvalue collections? If so you can use a dictionary object.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.