ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 16th, 2005, 06:09 PM
jdh0f0 jdh0f0 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 80 jdh0f0 User rank is Private First Class (20 - 50 Reputation Level)jdh0f0 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 54 sec
Reputation Power: 4
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>

Reply With Quote
  #2  
Old May 16th, 2005, 08:25 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
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

Reply With Quote
  #3  
Old May 17th, 2005, 01:49 PM
mlearn mlearn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 13 mlearn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m 12 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Sessions work with with Netscape but not IE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT