471,089 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Web.Config - Session Time Out - Load Balancing

SMG
Hi all,

I have two webservers to run my site, with a load balancing software.

Question 1 :
I am using following setting in web.config file of both the servers.

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20" />

Is it the right way to do? Will my session will be maintained when I move
from one server to other server.
I am not storing any value in session variable, I am using only cookies.
Question 2 :
Along with the above setting, I am using following setting in web.config
the intention is if user

<authentication mode="Forms">
<forms name="test" loginUrl="login.aspx" protection="All" path="/"
timeout="20" />
</authentication>

and following code to support the above code
<location path="myFolder">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

Current Scenario : After 20 minutes the page is timed out, When the page is
timed out the user is automatically redirected to login page.
Want is intended : When timedout user should be able to see the
timedout.aspx page and not login.aspx page, How do I handle it.

The help will be greatly appreciated.

Regards,
Shailesh G



Nov 19 '05 #1
1 2280
> Question 1 :
I am using following setting in web.config file of both the servers.
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20" />


No -- change InProc to StateServer. You will then need to decide which of
your two machines will run the state server NT service. Choose that machine
and start it. Then change the 127.0.0.1 to the machine name/IP. Make sure
<sessionState> element in web.config is the same on both machines.

-Brock
DevelopMentor
http://staff.develop.com/ballen


Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jeff | last post: by
1 post views Thread by Jonathan Chong | last post: by
6 posts views Thread by Andrew Robinson | last post: by
1 post views Thread by Vidyadhar Joshi | last post: by
1 post views Thread by m.a | last post: by
3 posts views Thread by =?Utf-8?B?T3NjYXJBcmc=?= | last post: by
6 posts views Thread by =?Utf-8?B?QnJlbmRhbiBLYXk=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.