Hello everyone, i got a bit of a problem. I have a login page in my site, but
if a user refreshed the site at any time all the session variables that are set
in it, get forgotten. I think i could fix this by setting something in the
application.cfm, just not sure how I would write it. Does anybody know why it
might be losing session variable values on page refresh, therfor causing a
user to need to re login every time they refresh. Here is the code for my login
page.

<cfapplication sessionmanagement="yes" clientmanagement="yes" ><html>
<cfparam name="url.id" default="0">
<!-- This is the default code; if you don't like it go to
[url]http://www.anime-archive.net/webring/[/url] for different ones ^^ -->

<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit [url]http://www.dynamicdrive.com[/url]

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!docum ent.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

<title>Digital Swordsmen</title>
<link rel="stylesheet" href="mainLoad.css">
<script language=javascript type="text/javascript">

function newWindow(bookgif)
{
bookWindow = window.open(bookgif,'bookWin',
"width=500,height=500,scrollbars=yes,resizable=yes ")

bookWindow.focus()

}

<!-- Hide from older browsers

stdBrowser = (document.getElementById) ? true : false

function toggleMenu(currElem,nextPos)
{
menuObj = (stdBrowser) ? document.getElementById(currElem).style :
eval("document." + currElem)
if (toggleMenu.arguments.length == 1)
{
nextPos = (parseInt(menuObj.top) == -5) ? -90 : -5
}
menuObj.top = (stdBrowser) ? nextPos + "px" : nextPos
}

// End hiding -->

function openWindow1() {
window.open("rednightmare.cfm","","width=300,heigh t=20,resizable=yes");
}
function openWindow2() {
window.open("sandstorm.cfm","","width=300,height=2 0,resizable=yes");
}

</script>
<STYLE TYPE="TEXT/CSS">


.menu {position:absolute; font:12px arial, helvetica, sans-serif;
background-color:#444444; layer-background-color:#CCCCCC; top:-87px}
#menuA {left:227px; width:100px}
#menuB {left:679px; width:100px}
#menuC {left:328px; width:150px}
#menuD {left:478px; width:100px}
#menuE {left:450px; width:150px}
#menuF {left:577px; width:100px}
#menuG {left:700px; width:100px}
A {text-decoration:none; color:#888888}
A:hover {background-color:#999999; color:#FFFFFF}
A.reglink:hover {background-color:#000000 }


.style1 {
color: #FF0000;
font-weight: bold;
}
</STYLE>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);

function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
}
//-->
</script>
<cfif not isdefined("session.userlogin")>
</script>
<cfset #session.userlogin# ="guest">
<cfset #session.userpassword# = "guest">
<cfset #session.firstname# = "guest">
<cfset #session.email# ="NA">
<cfset #session.userid# = '1'>
<cfset #session.userrole# = "guest">
<cfset #session.datasource# = "users">
<p>&copy; Copyright 2004 Groundxerosystems.com <br>
</script>
</cfif>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>

<body bgcolor="black">

<div align="center"><img src="IMG/thin%20logo%20web.jpg" width="800"
height="204"><font color="#AFAFAF">
</font><font color="#AFAFAF"> </font></div>
<font color="#AFAFAF">
<cfif not isdefined("server.topmarquee")>
<cfset #server.topmarquee# = "Welcome to digital swordsmen, there are no new
announcments.">
</cfif>
<div align="center"><font color="#999999">
<marquee>
<cfoutput>#server.topmarquee#</cfoutput>
</marquee>
</font> </div>
<cfinclude template="login.cfm"><br>
<cfif isdefined("session.firstname")>
&nbsp; &nbsp; &nbsp;<font color="#006600">Hello
<cfoutput>#session.firstname#</cfoutput> <cfif #session.userrole# EQ "user" or
#session.userrole# EQ "admin">&nbsp; &nbsp; You are currently logged in as
<cfoutput>#session.userlogin#</cfoutput></cfif></font>
<cfelse>
<div align="center"><font color="#006600"> Hello guest </font> </div>
</cfif>
</font>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="14%" height="510" valign="top"><table width="114%" border="0">
<tr>
<td><font color="#006600">Site Navigation</font></td>
</tr>
<tr>
<td><a href="About.cfm" target="_blank"><img src="IMG/AlienDe0.gif"
width="12" height="12" border="0"></a><a href="About.cfm"
target="mainframe"><font color="#666666">
<font face="Engravers MT">R</font>ead Me</font></a></td>
</tr>
<tr>
<td><a href="year.cfm" target="_blank"><img src="IMG/AlienDe0.gif"
width="12" height="12" border="0"></a><a href="year.cfm"
target="mainframe"><font color="#666666">
<font face="Engravers MT">N</font>ews</font></a></td>
</tr>
<tr>
<td><a href="pic_gallery.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a><a
href="pic_gallery.cfm" target="mainframe"><font color="#666666">
<font face="Engravers MT">P</font>ics</font></a></td>
</tr>
<tr>
<td><a href="http://kenji776.proboards12.com/index.cgi"
target="_blank"><img src="IMG/AlienDe0.gif" width="12" height="12"
border="0"><font color="#666666">
<font face="Engravers MT">F</font>orums</font></a></td>
</tr>
<tr>
<td><a
href="http://www.groundxerosystems.com/digital%20swordsmen/prod/chatroom/cfchat/
" target="_blank"><img src="IMG/AlienDe0.gif" width="12" height="12"
border="0"></a><a
href="http://www.groundxerosystems.com/digital%20swordsmen/prod/chatroom/cfchat/
" target="mainframe"><font color="#666666">
<font face="Engravers MT">C</font>hat</font></a></td>
</tr>
<tr>
<td><a href="uploads.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a><a
href="uploads.cfm" target="mainframe"><font color="#666666">
<font face="Engravers MT">U</font>ploads</font></a></td>
</tr>
<tr>
<td><a href="downloads.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a>
<a href="downloads.cfm" target="mainframe"><font face="Engravers
MT">D</font>ownloads</a></td>
</tr>
<tr>
<td><a href="systems.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a><a
href="systems.cfm" target="mainframe"><font color="#666666">
<font face="Engravers MT">G</font>ameReviews</font></a></td>
</tr>
<tr>
<td><a href="anime.cfm"><img src="IMG/AlienDe0.gif" width="12"
height="12" border="0"></a> <a href="anime.cfm" target="mainframe"><font
face="Engravers MT">A</font>nime
</a></td>
</tr>
<tr>
<td><a href="sword%20reviews.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a>
<a href="sword%20reviews.cfm" target="mainframe"><font
face="Engravers MT">S</font>word
Info</a></td>
</tr>
<tr>
<td><a href="tutorials.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a>
<a href="tutorials.cfm" target="mainframe"><font face="Engravers
MT">T</font>utorials</a></td>
</tr>
<tr>
<td><a href="Public%20Box.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a><a
href="Public%20Box.cfm" target="mainframe"><font color="#666666">
<font face="Engravers MT">P</font>ublic Rant </font></a></td>
</tr>
<tr>
<td><a href="legal.cfm" target="_blank"><img src="IMG/AlienDe0.gif"
width="12" height="12" border="0"></a>
<a href="legal.cfm" target="mainframe"><font color="#666666">
<font face="Engravers MT">L</font>egal Stuff</font></a></td>
</tr>
<tr>
<cfif session.userrole EQ "guest">
<td><a href="accountadd.cfm" target="_blank"><img
src="IMG/AlienDe0.gif" width="12" height="12" border="0"></a>
<a href="accountadd.cfm" target="mainframe"><font
face="Engravers MT">M</font>ake
an account</a></td>
</cfif>
</tr>

<tr>
<td><a href="vids.cfm" target="_blank"><img src="IMG/AlienDe0.gif"
width="12" height="12" border="0"></a>
<a href="vids.cfm" target="mainframe"><font face="Engravers
MT">F</font>unny</a></td>
</tr>
<tr>
<td><a href="mainpage.cfm"><img src="IMG/AlienDe0.gif" width="12"
height="12" border="0"></a>
<a href="mainpage.cfm"><font face="Engravers
MT">H</font>ome</a></td>
</tr>
<tr>
<td><font color="#006600">Music Selection</font></td>
</tr>
<tr>
<td><iframe name="music" src="music.cfm" id="music" width="120"
height="50"> <style type="text/css">
<!--
body{
scrollbar-track-color: #AFAFAF;
sc