Redian新闻
>
流星照亮加拿大的天空
avatar
流星照亮加拿大的天空# Aviation - 航空航天
a*u
1
【 以下文字转载自 DotNet 讨论区 】
发信人: apieceofyou (apieceofme), 信区: DotNet
标 题: Help!
发信站: BBS 未名空间站 (Fri Dec 30 19:08:00 2011, 美东)
I have 2 web pages, pageA and pageB.
There is a hyperlink in pageA to redirect user to pageB.
User must go to PageA and click on the link to pageB. If user visit pageB
directly, then a popup will display to warn user and redirect user back to
pageA.
My question is how to know if user open page by hyperlink or not?
The hints is to use session state and JavaScript.
But I still could not figure it out :( ...
Can someone help?
Thanks!!
avatar
Z*R
2
不知道具体地点。。。
http://news.bbc.co.uk/2/hi/americas/7744207.stm
Footage of a large meteor streaking across western Canada has been broadcast
on Canadian television.
The video filmed from a local police car on patrol, showed a small light
turning into a massive and blindingly bright fireball as it fell from the
sky and appeared to hit the Earth in the distance.
Scientists are now searching for its remains.
avatar
g*g
3
Easy, generate a token on server side before displaying in pageA,
have the token as a parameter, if user goes through pageA->pageB,
the token is sent to server again, server compares the token in
user session against this one, if it matches, displays pageB, otherwise
deny access.

【在 a*********u 的大作中提到】
: 【 以下文字转载自 DotNet 讨论区 】
: 发信人: apieceofyou (apieceofme), 信区: DotNet
: 标 题: Help!
: 发信站: BBS 未名空间站 (Fri Dec 30 19:08:00 2011, 美东)
: I have 2 web pages, pageA and pageB.
: There is a hyperlink in pageA to redirect user to pageB.
: User must go to PageA and click on the link to pageB. If user visit pageB
: directly, then a popup will display to warn user and redirect user back to
: pageA.
: My question is how to know if user open page by hyperlink or not?

avatar
B*g
4
A上把link加上create sessionA=1, 然后才到B
B上check ?sessionA=1。Yes, load B (自己决定是不是要reset sessionA);No,r
eject

【在 a*********u 的大作中提到】
: 【 以下文字转载自 DotNet 讨论区 】
: 发信人: apieceofyou (apieceofme), 信区: DotNet
: 标 题: Help!
: 发信站: BBS 未名空间站 (Fri Dec 30 19:08:00 2011, 美东)
: I have 2 web pages, pageA and pageB.
: There is a hyperlink in pageA to redirect user to pageB.
: User must go to PageA and click on the link to pageB. If user visit pageB
: directly, then a popup will display to warn user and redirect user back to
: pageA.
: My question is how to know if user open page by hyperlink or not?

avatar
T*g
5
check refer from http request header

【在 a*********u 的大作中提到】
: 【 以下文字转载自 DotNet 讨论区 】
: 发信人: apieceofyou (apieceofme), 信区: DotNet
: 标 题: Help!
: 发信站: BBS 未名空间站 (Fri Dec 30 19:08:00 2011, 美东)
: I have 2 web pages, pageA and pageB.
: There is a hyperlink in pageA to redirect user to pageB.
: User must go to PageA and click on the link to pageB. If user visit pageB
: directly, then a popup will display to warn user and redirect user back to
: pageA.
: My question is how to know if user open page by hyperlink or not?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。