ASP不时重新加载页面来重置变量 [英] ASP to re-load page from time to time to reset varaibles

查看:77
本文介绍了ASP不时重新加载页面来重置变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我订阅了一个网站,可以让我跟踪任务。我有一台额外的电脑,配备一台大显示器,我想永远

显示任务列表。这个问题是经过这么多个小时后我得到了

退出。


我需要每隔几个小时重新加载那个登录网址


如果我加载这个url它会记录我并重置我的会话变量和

重定向我

http://www.taskmaster.com/tc ************************ @ mydomain.com& password = m ypassword& login.x = 17& login.y = 7"

我最终做的是在我的网络服务器上创建一个网页

自动重定向到页面


我有一个网页 http://www.mydomain.com/reload.asp ,其代码为

以下。


但是如果有办法我可以在我的页面上更改代码,以便它只是

在后台加载页面并没有重定向?这样我就可以

然后修改我的页面,每隔几个小时自动刷新一次以重置

cookie / session变量。


<%

Response.Status =" 301永久移动"

Response.AddHeader" Location"," http://www.taskmaster.com/tc ?

action =登录& login = rich @ mydomaincom& password = passw ord& login.x = 17& login.y = 7"

%>

I have a website that I subscribe to that allows me to track tasks. I
have an extra computer with a big monitor that i want to always
display the task list. the problem is after so many hours I get
logged out.

I need to need to reload that sign in url every few hours

If I load this url it logs me and resets my session variable and
redirects me
http://www.taskmaster.com/tc************************@mydomain.com&password=m ypassword&login.x=17&login.y=7"
What i ended up doing was making a webpage on my webserver that
automaticly redirects to the page

I have a webpage http://www.mydomain.com/reload.asp that has the code
below.

But if there a way I can change that code on my page so that it just
loads the page in the background and doesnt redirect? that way I can
then modify my page to automaticly refresh every few hours to reset
the cookie/session variable.

<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.taskmaster.com/tc?
action=Login&login=rich@mydomaincom&password=passw ord&login.x=17&login.y=7"
%>

推荐答案

客户端问题


使用刷新元标记

http://www.i18nguy.com/markup/metatags.html
client side problem

use a refresh meta tag

http://www.i18nguy.com/markup/metatags.html


该代码似乎只是作为重定向工作,但它只是重定向你

一次。这就是我来到这里之前玩的东西


我需要的是我的域名上的一个页面,该页面出来并加载另一个页面

某个人的域名每小时一页。但它需要保留在我的域名中的

页面,以便一小时后它可以重新加载其他人

页面......


我以为我有一个使用框架的解决方案。我把第三方

网站放在一个框架中,但这似乎导致第三方网站失败。

它给出了我已经在另一个窗口登录的错误。所以

帧似乎不起作用..这是我的核心问题。如果我可以获得

它可以在一个框架中工作,那么我可以在父框架上重新加载。


我构建了一个页面taskmaster_con.asp将代码改为直接代码..

当我直接调用它时可以获得一个冠军但是当我把它粘贴在一个

框架的网站上时我会这么做$ b我试图做的是将taskmaster_con.asp粘贴到一个框架中(无论如何

我可以刷新主框架,然后加载此登录页面

在子窗口中)

然而,当我从一个框架运行时,登录失败并显示一条消息

关于我通过另一个浏览器窗口登录。

其中

< html>

< meta http-equiv ="刷新"含量=" 0; url = http://www.taskmaster.com/

tc?

ac ******************* ** @ mydomaain.com& password = pas sword& login.x = 17& login.y = 7">

< / html>

1月6日,12:12 * pm,Jon Paal [MSMD] < Jon nospam Paal @ everyone

dot comwrote:
that code seems to just work as a redirect, but it just redirects you
once. that is what I was playing with before I came here

what i need is a page on my domain which goes out and loads another on
someone elses domain page every hour. But it needs to stay on the
page in my domain so that one hour later it can reload the other guys
page ...

I thought I had a solution by using frames. I stuck the third party
website in a frame but that seems cause the third party site to fail.
it gives an error that i have already logged in on another window. so
frames doesnt seem to work.. that is my core problem. If I could get
it to work in a frame then I could put a reload on the parent frame.

I built a page taskmaster_con.asp which has teh redirect code it in..
works lke a champ when I call it directly however when I stick it in a
frame the website I acm
What I tried to do was stick taskmaster_con.asp into a frame (whatway
I could refresh the master frame which would then load this login page
in a child window)
However when I run it from a frame the login fails with a message
about me loggingin through another browser window.
which has
<html>
<meta http-equiv="Refresh" content="0; url=http://www.taskmaster.com/
tc?
ac*********************@mydomaain.com&password=pas sword&login.x=17&login.y=7">
</html>
On Jan 6, 12:12*pm, "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere
dot comwrote:

客户端问题


使用刷新元标记

http:// www。 i18nguy.com/markup/metatags.html


标签的内容值以秒为单位设置刷新周期。

刷新页面时
将刷新外部域名页面。

the tag has a content value which sets the refresh cycle in seconds.

when your page is refreshed it will refresh the page from the outside domain.


这篇关于ASP不时重新加载页面来重置变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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