468,483 Members | 2,551 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,483 developers. It's quick & easy.

after use web hosting, my website can not save session

At the time of trial we use localhost, everything runs fine. But at the moment after we uploaded the web on web hosting, there are problems on the whole use of the session state, where the problem causing the loss of user data that has been logged in the stored in the session.
For example, we login using a user with admin level. Session suddenly disappear for a while (in a matter of less than 5 minutes). Especially after do a query, like insert, update, and delete.

I try to use all kind session, and the result are:
- In process: same like problem above
- State server: error
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\aspnet_state\Parameters\AllowRemoteConnection. If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '' as the server name.
- SQL Server:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The sqlConnectionString attribute or the connection string it refers to cannot contain the connection options 'Database', 'Initial Catalog' or 'AttachDbFileName'. In order to allow this, allowCustomSqlDatabase attribute must be set to true and the application needs to be granted unrestricted SqlClientPermission. Please check with your administrator if the application does not have this permission.

I also try to use global.asax to improve seassion state duration, but useless.

Why this happen? Is this because server at web hosting's setting? Or my website's mistake? Any body can help and give some solution?
Jun 3 '11 #1
1 2788
3,405 Expert 2GB
Just verifying, are you using classic asp (.asp file extension) or asp.net (.aspx file extension)?

Jun 5 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

14 posts views Thread by Schoo | last post: by
4 posts views Thread by Andrea Scharfe | last post: by
6 posts views Thread by =?Utf-8?B?S2Fp?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.