View Full Version : Set session variable in configuration.vb

05-22-2006, 10:08 PM
I'm trying to assign a session variable in the configuration.vb file, but I get this error:

"session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive."

enableSessionState is set to true in web.config. There are session variables used elsewhere in the app.

05-22-2006, 10:33 PM
Did you Google (http://www.google.com/search?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-42,GGLG:en&q=%22session+state+can+only+be+used+when+enableSessionState+is+set+to+true%2C%22) for it? Here (http://www.syncfusion.com/FAQ/aspnet/WEB_c9c.aspx#q579q) is one possible solution.