Ir al contenido principal

Dealing with MOSS Session State

In the code for an SharePoint application page i'm getting NULL for HttpContext.Current.Session;
so I'm looking for information related to why this is happening.
Until now only found these blogs with information related to state and SharePoint:

Enabling Session State in SharePoint 2007 I first thought this was my problem but from this book (chapter 7: Database Security for SQL Session State), found that the session state tables live in my SharePoint services provider database (default created: SharedServices1_DB) and also found this blog(it fixes other issue with session state) about how to extract the sql script from command aspnet_regsql.exe

aspnet_regsql -sstype c –d [YOUR SSP DB NAME] -sqlexportonly fix.sql –ssadd

in my case

aspnet_regsql -S vpc03 -sstype c –d SharedServices1_DB -sqlexportonly fix.sql –ssadd

Note: i added the -S paramenter to specify my server name "vpc03".

Unfortunately I'm still stuck with Session NULL :(

Here was posted how to enable the session state in web.config of SharePoint application; only need to review this tag:

page enableSessionState="true"

Comentarios

Entradas populares de este blog

Ubuntu 12.04 Wireless reconexión

Instalé ubuntu 12.04 ayer por la noche. todo funciona bien, casi perfecto, excepto que hoy en la mañana después de abrir muchas páginas, apt-get etc al mismo tiempo creo que hizo que el wireless se desconectase y aunque me preguntó mil veces el password nunca pudo conectarse; ver los logs con gnome-system-log no fue de gran ayuda simplemente mostraba time-out's después de 100 intentos...la solución reboot... casi como windows7 :( eso funcionó...posteriormente volvió a pasar....no quiero rebootear... es linux asi que unos mans sobre modprobe, lsmod comandos de modulos me llevó a esta solución... Aplica para mi Toshiba satellite A505: Primero listar todos los módulos cargados $lsmod encontré los módulos posibles que son del wireless: cfg80211, consulte información para descargarlos $ man modprobe ahí una referencia mas directa para descargar módulos $ man rmmod luego intentar (sólo aplica a la toshiba que tengo --latinoamerica) $ sudo rmmod -v cfg80211 envía ERRO...