|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sessions work with with Netscape but not IE
Solve one problem and find another.
Now, using the Application.cfc file below, my sessions work perfect in Netscape but in IE I can only view one page per login (i.e., when I login using IE I make it past the login page, but when I attempt to go to a second page in the session I get sent back to the login page). Any ideas? Thanks, Jason Code:
<!--- Application.cfc --->
<CFCOMPONENT OUTPUT="false">
<CFPARAM NAME="Title" Default="">
<!--- Name the application. --->
<CFSET this.name="HumanSexuality">
<!--- Turn on session management. --->
<CFSET this.sessionManagement=true>
<CFFUNCTION NAME="onRequestStart" RETURNTYPE="void" OUTPUT="true">
<CFSET request.GradeTable = "S05_253_Grades">
<CFSET request.dataSource = "courses">
<CFSET request.dsn = "courses">
<CFSET request.siteURL = "http://209.200.109.186/sex/">
<CFSET request.companyName = "FAM 253: Human Sexuality">
<CFSET request.CounterTable = "S05_253_Stats">
<CFINCLUDE TEMPLATE="header.cfm">
<CFINCLUDE template="course_counter.cfm">
<!--- If user is not logged in, force them to now --->
<CFIF not isDefined("SESSION.auth.isLoggedIn")>
<!--- If the user is now submitting "Login" form, --->
<!--- Include "Login Check" code to validate user --->
<CFIF isDefined("FORM.SSN")>
<CFINCLUDE TEMPLATE="loginCheck.cfm">
</CFIF>
<CFINCLUDE TEMPLATE="loginForm.cfm">
<CFABORT>
</CFIF>
</CFFUNCTION>
<!--- After the page loads. --->
<CFFUNCTION NAME="onRequestEnd" RETURNTYPE="void" OUTPUT="true">
<CFINCLUDE TEMPLATE="footer.cfm">
</CFFUNCTION>
</CFCOMPONENT>
|
|
#2
|
|||
|
|||
|
CF sessions are browser neutral...all it's doing is setting a cookie that is used to track your session identifier. If it works in one browser but not another then there is definitely something set wrong in the browser. Could cookies be disabled?
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
The above comment is right... It sounds like the cookie is not getting set (even with session variables you still need to use cookies on the client to identify it). With no cookie, next time that it tried to load a session variable after the current page, it will just error out because it does not know what session you are dealing with. One way around using cookies is to always pass the CFID and CFTOKEN between every page either through the URL or form variables...
Hope this helps... -Matt |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Sessions work with with Netscape but not IE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|