在同一个页面请求都是同一个session.但是,我在两个工程中,前一个设置值..后一个取值..怎么都取不到..
代码:
Project1->webapp1.aspx: Session["UserID"] = "user1";
Project2->webapp2.aspx: user1 = Session["UserID"];
从webapp1转到webapp2...就取不到值了..
要怎么取这值哦..
代码:
Project1->webapp1.aspx: Session["UserID"] = "user1";
Project2->webapp2.aspx: user1 = Session["UserID"];
从webapp1转到webapp2...就取不到值了..
要怎么取这值哦..
解决方案 »
- 如何通过C#程序将VF数据表中的数据提取出来啊!小弟在线等!!!
- dev treelist nodecell选中
- 请问VS2005里面 SqlConnection SqlCommand SqlAdapter控件都用不了吖
- 100分求大文本文件读取问题,找到一个字符所在的位子,在线等立即给分
- 水晶报表能不能设置自动列数???
- 有做过自定义控件的高手请进
- 【400分,超难问题】如何用c#表示下列像表的东东!!!
- 公司内部框架--连用带维护已经3个多月了。大家共同学习。
- 如何用正则表达式对IP地址某一段做替换
- Help,c#debug时的异常
- \0表示什么意思?怎么用stringbuilder连接两个字符串.前一个的最后带一个\0后面那个就加不上去了呢?
- 根据SQL错误码来进行提示?
1.InProc(默认的设定,这种情况Session放在进程中,容易丢失)
2.SQL Server 数据库中存储Session
3.State Server Service 使用服务器存储Session我们使用1模式,则不能跨项目使用。
Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
从没用过..没头绪哦..
兄弟们..帮哦..急..
有没有例子..拿让看下哦..
我用SQLSERVE MODE时,登陆Project1数据库里生成一个SESSION,通过链接到Project2->WebApp2,又生成了一个SESSION,那我怎么样才能得到前一个SESSION的值呢?