We have a web application that started with small, any new features that were added, was made only as part of the same project, however now we would like to create new projects for these mentioned add-ons ...
we created a new project, it fits global.asax into the main project, and also just accesses the web.config of the main project, however there is a data integrity check session in the asax global code to see if the user is logged in .. this is where we get problems .. the user is logged in, but the site errors saying that they are logged in because the add-on project cannot access the user ID of the session that is installed on the main project.
We currently do not use a session state server or sql state server, and we would like to avoid it in order to avoid any headaches for any old code.
Also, we donβt want to go the way of mutexes .. want to stay away from window coding if we can ...
sketches of the site about what happens with the session: the user logs in with the asp code (.net 1.1 code), the user authenticates and logs in successfully, sends the manual for this user to the database, the main project (.net 2.0 code) captures this manual, Captures user data and stores the user ID in the session. any page that needs to know who the user is is getting it from the session ("userid")
like this: we are creating another project that suits global.asax, can access web.config - DONE!
what we want to do on top of this: if this new project contains a page (add-on function from the main project), this page has access to the session ("userid") that is set from the main project. - NOT SURE AS THIS ...
Greg r
source share