CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Preventing Multiple Logins (subdirectories)

Print topic Send  topic

Author Message
sgadson

Posts: 45
Posted: 09/30/2005, 6:45 AM

Hello,

(CodeChargeStudio V2.3.2.27 VB.Net)

I am working on an intranet site. I am building the site using multiple small codecharge studio projects. I'm loading each project in a separate subdirectory on the server (see example structure below).

The problem is each time a user goes into a different subdirectory their login information (or session information) is lost and they need to log in again. Is there any way to fix this?



Example Directory Structure:

/main site directory
../sub directory 1
../sub directory 2
_________________
Shawn :-)
View profile  Send private message
E43509

Posts: 283
Posted: 09/30/2005, 9:29 AM

I'm not as conversant with .net yet but each sub project you have , uses its own session variable associated with each asp.net application (the dll and web.config) to hold the user info. Otherwise a server would get confused if more than one .net app used the same named session variable. If app A and app B look up sesson variable UserId, it has to be related to their own application (not the others). That said, one way to get around this is to pass the login info or a true/false kind of flag from the parent apps to the the child apps to let them know they are ok to display the page as the security has already been validated above. Perhaps you can initally do this in the query string to the child apps and add ?logged_in=Y You will have to modify the security common file to give you an OK.
View profile  Send private message
Eddie Fourie
Posted: 09/30/2005, 4:37 PM

Or simply use a cookie to persist the information.


> I'm not as conversant with .net yet but each sub project you have ,
> uses its own
> session variable associated with each asp.net application (the dll and
> web.config) to hold the user info. Otherwise a server would get
> confused if
> more than one .net app used the same named session variable. If app A
> and app
> B look up sesson variable UserId, it has to be related to their own
> application
> (not the others). That said, one way to get around this is to pass
> the login
> info or a true/false kind of flag from the parent apps to the the
> child apps to
> let them know they are ok to display the page as the security has
> already been
> validated above. Perhaps you can initally do this in the query string
> to the
> child apps and add ?logged_in=Y You will have to modify the security
> common
> file to give you an OK.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/

sgadson

Posts: 45
Posted: 10/01/2005, 11:01 PM

Could you give me an example of how to achieve this with cookies in CodeCharge Studio?
_________________
Shawn :-)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.