By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,164 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,164 IT Pros & Developers. It's quick & easy.

after use web hosting, my website can not save session

P: 1
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 '127.0.0.1' 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
Share this Question
Share on Google+
1 Reply


jhardman
Expert 2.5K+
P: 3,405
Just verifying, are you using classic asp (.asp file extension) or asp.net (.aspx file extension)?

Jared
Jun 5 '11 #2

Post your reply

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