Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Sharepoint question

  Asked By: Nirmal    Date: Nov 14    Category: Sharepoint    Views: 921

Please see the issue details below:





In SharePoint 2003 Portal Server, is it possible to transfer session value more
than two times.




For example, now we have one Asp.net web application including three pages,
page1.aspx, page2.aspx and page3.aspx. The business logic is like following:





1) In page1 we do Session.Add["name","username"] and then server.transfer to
page2.aspx


2) In page2 we will use session["name"] value without any modification for
session["name"] and then server.transfer to page3.aspx


3) In page3 we will use session["name"] value again








For this application, if we just put it in IIS and then access it through
brower, the above work flow is right. But, in SharePoint portal server, we use
PageViewerWebPart class to open this application through ContentLink
property, the result is in page3, the Session["name"] value becomes empty and we
can't use it again.

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Randolph Charles     Answered On: Nov 14

You probably need to turn the Session on in the web.config

To place to look

1. Remove the comments
<!-- <add name="Session"
type="System.Web.SessionState.SessionStateModule"/>-->
should be
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

2. enableSessionState="false" should be enableSessionState="true"

 
Answer #2    Answered By: Kavi Kumhor     Answered On: Nov 14

Just be aware that session is disabled in SPS because session doesn't work very
well in farm configurations. I would suggest that you use a database stored
session (like the ViewState form element) instead in a load-balabnced
environment.

 
Answer #3    Answered By: Alex Davis     Answered On: Nov 14

In a farm environment if you enable Session State you need to make sure
that the load balancing uses "Sticky" connection where sub-sequent
session will always hit the same web server if not session will be lost

 
Didn't find what you were looking for? Find more on Sharepoint question Or get search suggestion and latest updates.




Tagged: