Questions tagged [session]

A session is a semi-permanent interactive information interchange, also known as a dialogue, a conversation or a meeting, between two or more communicating devices, or between a computer and user.

1
vote
0answers
44 views

Logout user from the previous session if he login with another session

We have an requirement where we want user to have only one session enable at a time in the web application. If the user is trying to login from another machiine, their previous session should get ...
2
votes
0answers
128 views

Issue With Provider hosted app in SharePoint Online for the Users Randomly

Background We had developed a provider hosted app with Web Forms template for copying the content(list Items,Documents) from one site collection to another site collection,for this we are doing this ...
1
vote
1answer
88 views

Enable Session State in WebPart Asp.net project Programatically

I have Searched and looked to this question and tried this guide as well but could'n solve my problem. I have started a basic and simple web part i want to save a string variable along the session. ...
1
vote
4answers
2k views

How to Increase Session Time out in Sharepoint?

I have one site collection where I need a data from Session Storage. So I enable my Session from web.config. I know it is not recommended Session in Sharepoint, but my client needs it. So Basically ...
0
votes
1answer
89 views

Javascript - How to include javascript session?

Currently working on a JavaScript on a SharePoint home page. The script below will popup a window that shows a message: "Welcome to new page." However, it is going to be annoying if it appears every ...
3
votes
1answer
456 views

sharepoint server 2013 error Session state disabled for asp.net

I am getting error on my sharepoint server 2013 "Session state has been disabled for ASP.NET. The Report Viewer control requires that session state be enabled in local mode." For that error i have ...
0
votes
1answer
156 views

Deleted SessionState Database

I mistakenly deleted the SessionState database from SQL server. How this will affect my farm? And what is the correct way to recreate it?
1
vote
0answers
222 views

Session leakage

I use SharePoint to host our website on the internet. Site users use Form-based authentication to log in. These past few days, the site has a very weird issue with people logging in and being ...
1
vote
2answers
743 views

Redirect to Login Page After Session Expired - SharePoint Custom Login Page

I have SharePoint web application. Need to redirect to custom login page after session timeout. Where is the exact location in web.config file to do this redirection or any code behind file or login....
1
vote
1answer
213 views

Enabling Session State downs the SharePoint site in 2013

I want to store my session in session state service. I am following this site for setting up it. But when I enable it, my site gives me 500 Internal Server Error. When I trace it I see below log: &...
3
votes
1answer
753 views

What is the difference between “SP State Service Application” and “SP Session State Service”

Im little confused about the difference between "SP State Service Application" and "SP Session State Service", while i know that session state service is used for storing sessions in SharePoint.
1
vote
1answer
321 views

Get session variable in SharePoint Online page layout or web part using javascript

I need to know the visitor's first visit to a page after every new login into SharePoint. Is there a way for me to get a "SessionId" or any session-unique variable in SharePoint online using ...
0
votes
1answer
677 views

does Enable ASP.NET Session State in SharePoint (On SQL Server to persist session in database) Effect All web Applcations

When Enable ASP.NET Session State in SharePoint (On SQL Server to persist session in database) would add sessionstate entry in all web applications on farm <sessionState mode="SQLServer" timeout=...
0
votes
1answer
790 views

Client side Session Variables

Does SharePoint support session variables that can be accessed by the client side? Using client side jQuery or JS or even placing code on an ASPX acsset attached to a webpart to set variable on the ...
0
votes
1answer
80 views

Session Some Time reurn Null And some time reurn value

I create session when user Login and use session to check access page, when i check session some time rerun null if i refresh page or navigate to other page the session is not null , it's not about ...
2
votes
0answers
129 views

SharePoint Session Management

I have a SharePoint Forms based authentication website (Back end - MYSQL) where I need to add a functionality, so that if one user is logged in from one browser and he tries to login in again another ...
0
votes
1answer
75 views

ASP.NET application under SharePoint website

The Default Web Site on my Windows Server 2008 with IIS 7 is running MOSS 2007 (SharePoint). Since I want users to feel like they are still on the portal, I created a similarly branded ASP.NET web ...
1
vote
2answers
2k views

How to logout user if idle

How do you logout a user from SharePoint if there is no user action or screen remains idle for long time, or is there a way to end user session and redirect him to login page?
0
votes
2answers
249 views

Alternative for sessions in sharepoint

I have used some session variable in my project which are giving some serialization error after i enabled spsessionstate. Do we have any alternatives for sessions in sharePoint? I tried changing ...
0
votes
2answers
143 views

Error:Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive

I am getting this error in my Application Page. I have also done EnableSessionState="true" EnableViewState="true" in the page directive. Thanks
0
votes
0answers
528 views

Enable-SPSessionStateService problem

I have enabled session state SQLSERVER mode in SharpePoint 2013 by running Enable-SPSessionStateService PowerShell commmand. Now, when I open my custom webpart form, it throws below error, any idea?
0
votes
1answer
318 views

Get-SPTaxonomySession -Site parameter

I want to clarify about -Site parameter. In the below line of code:, -Site parameter indicates the name of any web application or it is only Central Admin Web application? $taxonomySession = Get-...
0
votes
0answers
33 views

Strange issue in Production server related to sessions

we have deployed our web application in production environment. everything use to work very fine on development machine but when it is deployed to production, it started behaving strangely. if i open ...
2
votes
2answers
2k views

Confused about SharePoint Session Duration

I have a SharePoint farm that uses an AD FS server as a Trusted Identity Provider. The AD FS TokenLifetime is set at 30 minutes The LogonTokenCacheExpirationWindow is set to 1 minute. According to ...
1
vote
1answer
1k views

Get user session ID

I have a problem with SharePoint session. Is there any way to retrieve Session ID or Transaction ID of an user in SharePoint by C#?
0
votes
1answer
1k views

Sessions in sharepoint Web part

I have read many articles. Some mention that to enable session state we have to start the asp.net state service in services.msc. then run power shell: enable.spsessionstate -defaultProvision Then add ...
0
votes
1answer
257 views

Is it possible to get access to http session from ashx http handler in sharepoint 2010+?

If so, do you just have to enable session for sharepoint and then implement IReadOnlySessionState on the handler class? I am on machines where I cannot enable session yet, and was hoping someone who ...
0
votes
1answer
212 views

Security trim list-items based on a session variable

I have created a session variable. And have created a site column that sets a flag that corresponds to that session variable. I would like to hide/show list items across any list utilizing this site ...
5
votes
3answers
10k views

Session and HttpContext not available in web part

I have a web part in which I have Grid View which displays data from a custom list. In the Page_Load I am initializing the DataTable. I want to store the DataTable object in Session object so that it ...
0
votes
1answer
128 views

Is there something like session state for user context?

Is there a way to store some kind of session variables for sharepoint users? What are disadvantages activating session state service inside of sharepoint? since i have a webpart which i want to ...
0
votes
1answer
34 views

Error with using Session in SP2010

I have got a problem with using Session at Sharepoint 2010. I use this code: Session["Dzien"] = TextBox3.Text; Session["Pracownik"] = DropDownList1.SelectedItem.Text; I put at web....
1
vote
1answer
120 views

SessionSate in Sharepoint

Normally session state module is disabled in SharePoint web.config. So it means SharePoint don't need session at all for its functioning. Is it bad practice to enable session state in SharePoint web....
0
votes
2answers
54 views

Session not preserving state in MOSS 2007

I have created a button that will load a page that contains a PDF document that users can fill out and save. After the save is clicked, the page posts-back and there is code to save the changes. ...
0
votes
0answers
33 views

Max. Session Length in SP2010

i want to specify the maximum number of minutes an active user session may remain open before ending. In other words, how can i specify Max. Session Length in SP2010
0
votes
1answer
271 views

Use session variable to not display modal popup on every page visit

Is there a way to use a session variable (not a browser cookie) to not display a modal popup from CEWP on every page load?
0
votes
1answer
232 views

State Service SharePoint Foundation

I would like to ask, whether there is State Service in SharePoint Foundation. If yes, how I can run it?
0
votes
1answer
243 views

Is it possible to Enable SP SessionStateService for “a specific” SP Web application?

I have a SP2010 Server (enterprise edition) that hosts many web applications. Only one application requires a SQL Session State service. The Powershell command Enable-SPSessionStateService does not ...
1
vote
2answers
322 views

SharePoint session events

I'm writing SharePoint webparts that are communicating with external system. Currently, on each request, a connection with system is made, user is authenticated and session is established - than ...
0
votes
2answers
721 views

Permissions for using HttpContext Session in SharePoint control

I want to use Session State to store values used in a WebControl on a SharePoint page. The SQL connection string in web.config is using the currently logged on user (Integrated Security=true), however ...
1
vote
1answer
578 views

Sharing Session State across different zones in web applications

We have a SharePoint 2010 web application with kind of e-commerce functionality (for example, http://sharepoint-shop). User can save items in the basket which works through default Session State (...
0
votes
1answer
4k views

Getting rid of the session timeout in Excel Web Access?

I understand there is a 30 second short session timeout (if no interaction is detected) to a 5 minute extended sessiopn timeout. The userss would like their reports up all day, just refreshing every ...
0
votes
2answers
165 views

When to abandon session on a webpart

On a webpart, when I am navigating away from the page the webpart is on, I need to abandon the session of that webpart. I store values in the session that are used by the webpart. The webpart is ...
4
votes
2answers
10k views

HttpContext.Current.Session is null

I'm loading a page with WebPart in it, and I get NullReferenceException in this line: HttpContext.Current.Session["Foo"] = value; because Session is null. The web.config under inetpub folder has &...
10
votes
2answers
12k views

Signout behavior without closing the browser?

We have, essentially, a custom asp.net application inside of SharePoint. We have a Logout button in the application that redirects to the _layouts/SignOut.aspx page. The user sees a message informing ...
1
vote
3answers
5k views

Best Practice for Shopping-Cart like functionality in SharePoint

I need to build a Price Quote system on SharePoint, where people can go in to an existing website and instead of adding items to a cart (this company doesn't sell direct) they can add items to a quote,...
1
vote
2answers
875 views

Share Data Between Visual Web Parts on different pages

I have a need to share information from Web Parts on one page, with Web Parts on a second page. SharePoint does not have a default Session State, and let's say for arguments sake I cannot enable ...
15
votes
4answers
14k views

How to log off user from SharePoint site, if the user has been inactive for 20 minutes

How to log off the SharePoint site, if the user is has been inactive for for 20 minutes? Do I need to redirect user to logout page? How would I count the idle time?
2
votes
1answer
372 views

SharePoint save content in session

By default SharePoint will disable session, if we have to use session in web parts, then how should we do so? If I don't use session, then is there any alternative solutions ?
1
vote
2answers
272 views

How to remove same session value for different sessions?

I received an error from the Security testing team as follows: It was observed that same session value is used for different sessions. After logout, session value should be cleared and the user ...
2
votes
1answer
1k views

Why isn't the session_end event in my HttpModule firing?

I deployed an HttpModule that needs to do something in session_start and session_end events. I think everything's just fine, because I enabled the session state and set it to "InProc" mode and defined ...