[英]IBM WebSphere Application/Portal Servers, TAI and HttpSession and Cookies
I have IBM WAS 6.1 and Portal 6.1. 我有IBM WAS 6.1和Portal 6.1。 Also i have a TAI which works when user login/logout in/out Portal.
我还有一个TAI,当用户登录/注销Portal时可以使用。 I want to work with HttpSession in TAI.
我想在TAI中使用HttpSession。 Shortly my task is next: when user logging in i want to save some parameter in memory and as a key i want to use ID of HttpSession (or something else?).
不久,我的任务是下一个:当用户登录时,我想在内存中保存一些参数,并作为键使用HttpSession的ID(或其他?)。
For an example, while user logging id of httpsession is "foo" . 例如,当用户登录的httpsession ID为“ foo”时 。 Than, user logged in and working in Portal, and press Logout button, portal logged out user using internal mechanize and than my TAI catch this request and now i have a http session with Id "bar" .
然后,用户登录并在Portal中工作,然后按Logout按钮,Portal使用内部机械化注销了用户,然后我的TAI捕获了此请求,现在我有了一个ID为“ bar”的http会话。 So, WAS changed http session.
因此,WAS更改了http会话。 This means i can not user http session to save any parameter, because WAS recreates it for logging out.
这意味着我无法使用http会话来保存任何参数,因为WAS会重新创建它以注销。 But i have to save some parameter while user logging in, and use it while he logging out.
但是我必须在用户登录时保存一些参数,并在用户注销时使用它。
Also i can't use Cookies for some reasons. 我也由于某些原因不能使用Cookies。 Any idea how i can save ID based on HttpSession?
任何想法我如何可以保存基于HttpSession的ID?
Or i have to know who(Portal Uid of user) pressed logout button in TAI. 或者我必须知道是谁(用户的门户网站UID)在TAI中按下了注销按钮。 It is also helps me to resolve my problem.
这也有助于我解决问题。
UPDATE #1. 更新#1。
Also, for some reason WAS(?) delete custom cookie. 同样,出于某种原因,WAS(?)删除自定义cookie。 I add custom cookie in TAI and WAS deleting it, i can not find my own cookie.
我在TAI中添加了自定义cookie,并且将其删除了,但找不到自己的cookie。 Any idea where and why?
任何想法在哪里,为什么? There also http server beyond was and client, but i checked it - he shouldn't delete it.
还有http服务器和客户端,但是我检查了它-他不应该删除它。
I did not resolve question about http session, but i resolved problem with a cookie. 我没有解决有关http会话的问题,但解决了Cookie的问题。 Right cookie:
正确的Cookie:
Cookie cooky = new Cookie();
cooky.setPath("/");
cooky.setDomain("domain.com");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.