Can I modify the global.asax in sharepoint.
I want to implement httpModule and global.asax for session start and session end events.
View Complete Post
I'm wondering if ther's a simple way of achieving the following.
When a new session starts, I create some cookies and session objects from global.asax session start.
If a user logs out, I want to abandon the session - I presume using session.abandon, and i also want to clear the cookies. They are set to expire after the session ends (no expiry date). This may be an automatic thing, but I've not tested as yet.
When a user logs back in again I want to recreate those objects - in other words, kick off global.asax again. Is that what happens or do I need to recreate manually?
i use session state for logged in usersif session lost(finished) for user and i use this session to insert as a forien key in a tablethis will generate runtime error as this id become equal to zerohow can i develop a method to log out the user automatically when session timeout reachedinseted to check at every button on the velue of session.i have ideia to check on session on global file in Application_BeginRequest event
but give me error what do you think of this method???thanks
I'm trying to do some "housecleaning" with my application. When the Session_End event fires, I'm wondering, is the Session still there? Does the Session disappear AFTER the Session_End event completes, or is it gone beforehand? In other words, can my Session_End event call subroutines that rely on the Session variables? I'm wanting to log the fact that a particular session ended. Can I do this in global.asax?
i want to redirect the user from ?????the ??AuthenticateRequest in the global.asax file when session timeout ?happens.
is it possible.
Hey and thanks!
As the subject line notes the software in use, anyone have an idea why I can't edit global.asax in VS2010 (being ran with the 'run as administrator' advanced property check box checked)? The file properties in explorer show local machine admins have full control (I am in that category) and also that IIS has windows auth enabled for the default web site. What is this other level of security on here that I'm missing? I can edit web.config, vb files and general aspx files with no problem--just the global.asax file causing a headache...
Anybody knows how we can create a custom session when user login to sharepoint site (intranet)?
When a user login, I want to show some disclaimer where the user can choose yes or no.
If yes, it will create 1 session to make the disclaimer box only showed up once for every login.
Can I achieve this without using custom control?
Thank you all
I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code
behind in ASP.NET but it throws the following error.
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please
also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
I set the page directive as
I want to create global list which can be acessible to all the sub-sites in the SharePoint
----- Site 1
------ Site 2
And so on,
I want to create list in which I can insert an item from any of the site from my site collection.