asp.net中的会话探测用户面板 [英] session probem user panel in asp.net

查看:54
本文介绍了asp.net中的会话探测用户面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个Web应用程序,在其中将用户的电子邮件存储为Session中的
Session ["UserName"] = dt.Rows [0] ["UserName"].ToString();
并将用户重定向到目标页面.
现在我有一个页面作为发送邮件,因为用户正在发送邮件,但是
在接收端,当我在局域网中使用时,它正在显示另一个用户邮件.
如果我在本地主机中为一个用户使用它,则工作正常.

请告诉我.可能是什么问题.
是否存在Session []问题或其他问题.
在注销中,我有放弃会话"为
Session.Abandon();

Hi All,

I have a web application in which i have stored user''s email in Session as
Session["UserName"] = dt.Rows[0]["UserName"].ToString();
and redirect the user to destination page.
Now i have a page as send mail in that the user is sending mail that is alright but
at the receiving end it is showing another user mail when i am using in LAN.
It is working fine if I am using in local host for one user.

Please let me know. What can be issues .
Is there are Session[] problem or something else.
In logout I have Abandon session as
Session.Abandon();

推荐答案

是否存在Session []问题或其他问题.
不会.这不是会话问题,因为会话是基于每个用户的,并且不会在用户之间共享.
它是Application对象,如果使用的话,将在用户之间共享.

在配置发件人时查找其他问题.您是否使用/设置了正确的用户名?尝试将用户名也嵌入到电子邮件正文中,然后查看用户名是否也被更改.
Is there are Session[] problem or something else.
No. It cannot be session problem as session is per user based and is not shared across users.
It''s Application object that is shared across the users if used.

Look for some other issues while configuring the sender. Are you using/setting correct username? Try to embedd the username in email body too and see if that too gets changed.


这篇关于asp.net中的会话探测用户面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆