Article View: chile.comp.programacion
Article #2207Re: Ayuda con Timeout en ASP.Net (URGENTE)
From: Chano
Date: Fri, 03 Mar 2006 23:47
Date: Fri, 03 Mar 2006 23:47
30 lines
1994 bytes
1994 bytes
"José Miguel Santibáñez" <jms.nospam@nivel5.cl> escribio:
> En el capítulo anterior (news:duag9j$75f$1@news.nivel5.cl), "+mArkO+"
> <NOSPAMjoin.xtc@gmail.comNOSPAM> dijo:
>> eso es solo posible a traves de asp.net?
>> hay alguna forma de hacerlo con php?
>>
> No directamente, pero si se programa fácilmente en el típico archivo de
> cofiguración de las aplicaciones PHP...
> <? session_start();
> if (time() - $_SESSION["time"] > 60) { // tiempo medido en segundos...
> header('location: login.php');
> session_unset();
> exit;
> } else {
> $_SESSION["time"] = time();
> }
> ?>
Cualquier script php debe empezar <?php !!!
<? debería estar deprecated.
--
Chano
jgarrido[@]dcc.uchile.cl
Technical Details
Message-ID:
<duakih$fuv$1@localhost.localdomain>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!news.cec.uchile.cl!not-for-mailReferences:
<du9pg2$16c$1@news.nivel5.cl> <duag9j$75f$1@news.nivel5.cl> <Xns977BCC913ECEFjmsnews@200.27.221.71>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,8e6641b02af262e2
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!news.cec.uchile.cl!not-for-mail
From: Chano <chano@lj.NOSPAM.cl>
Newsgroups: chile.comp.programacion
Subject: Re: Ayuda con Timeout en ASP.Net (URGENTE)
Date: Fri, 3 Mar 2006 23:47:29 +0000 (UTC)
Organization: Chano Records Inc.
Lines: 30
Sender: Jose Miguel Garrido Urzua <jgarrido@cipres.cec.uchile.cl>
Distribution: world
Message-ID: <duakih$fuv$1@localhost.localdomain>
References: <du9pg2$16c$1@news.nivel5.cl> <duag9j$75f$1@news.nivel5.cl> <Xns977BCC913ECEFjmsnews@200.27.221.71>
Reply-To: Chano <chanorecords@gmail.com>
NNTP-Posting-Host: cipres.cec.uchile.cl
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: localhost.localdomain 1141429649 16351 200.9.100.5 (3 Mar 2006 23:47:29 GMT)
X-Complaints-To: news@localhost.localdomain
NNTP-Posting-Date: Fri, 3 Mar 2006 23:47:29 +0000 (UTC)
X-Nick: Chano
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.8 (sun4u))