Component index
Section index

Component websession_sql


Search

	/*
	    Here is a sub-page of an already started session.
	    We are passing true to websession_sql because we want
	    to make sure the session is established.
	*/
	<call websession_sql>("test",true);
	<f nosession>
	    tlmpweb_error ("Your session is not active\n\n");
	    /-<center>
	    url_self ("test=newsession","Click here to start");
	    /-</center>
	</f>
	<f validsession>
	    // Session older than 30 seconds are rejected
	    reject = info.since > 30;
	</f>
	<f exec>
	    tlmpweb_title ("You are");
	    printf ("user=%s<br>\n",user.get());
	    printf ("pass=%s<br>\n",passwd.get());
	</f>
	</call>