...

View Full Version : how to maintain different sessionid for different sub folders in Asp.net webappli.,



krish.mtm143
11-18-2009, 05:42 AM
hi,

rootfolder(myweb)
--folder1(Admin)
Login.aspx
Logout.aspx
pageAdmin1.aspx
pageAdmin2.aspx
pageAdmin3.aspx
adminweb.config(forms authentication)
--folder2(Userpages)
Login.aspx
Logout.aspx
page1.aspx
page2.aspx
page3.aspx
userweb.config(forms authentication)

i want to maintain two different sessionids for these folders. i mean if i logged from admin module it does't effect the userpages. viceversa..
pls..help me

vinyl-junkie
11-19-2009, 04:32 AM
What are you trying to do that you need different session id's for different folders? Why not just add a session id for the role someone is in? We need a little more detail on the problem you're trying to solve.

daor79
11-24-2009, 10:16 AM
hi,
i want to mai (http://sieuthi77.com/giaodichvang)ntain two di (http://sieuthi77.com/giavang)fferent sessioni (http://sieuthi77.com/sangiaodichvang)ds for these folders. i mean if i logged from admin module it does't effect the userpages. vi (http://sieuthi77.com/sanvang)ceversa..
pls..help me

When using cookie-based session state, ASP.NET 2.0 does not allocate storage for session data until the Session object is used.

so u will getting new session ID for every request request event if u are refreshing the same page.

until the session object is accessed. if u want same seesionid accross the application for a page just store any variable in session state.

and u will get the desired result.

krish.mtm143
12-17-2009, 09:55 AM
Hi,

Q: I have updatepanel with few textboxes and asp.net button. if i click the button inside updatepanel its working fine after this action i will try to click the button which is placed outside update panel then i getting this error[/COLOR].


"Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation."

thanks & regards
Krish



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum