Link to home
Start Free TrialLog in
Avatar of Chris Jones
Chris JonesFlag for United States of America

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.
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of Chris Jones

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?
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?
no for a sonsole app to pick them up....
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
Avatar of Chris Jones
Chris Jones
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial