logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > ASP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-01-2008, 05:46 PM   #11
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

Hi davidj

I found what was messing up the session variables! it was in the body css (crazy I know)
Check out
Code:
body {
    background-image: url(/%7Eimages/site/gradiant.gif);
    background-repeat: repeat-x;
    font-family: sans-serif;
    font-size: 10px;
It was passing the image thru the url which I guess was changing the sessionID. WOW thats all I can say I didn't know that it would have that much of an impact on my site. Once I took that out the whole thing worked perfectly and the sessionID stayed the same throughout all web pages. haha now here is the kicker... know of any way on how I can put the image back in the background without passing it through the url? haha thanks davidj you've helped me out so much! You taught me to keep looking at it and I really appreciate you helping me througout this whole process!!! I owe you BIG TIME!!!!!
rico1931 is offline   Reply With Quote
Old 07-01-2008, 06:04 PM   #12
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

I still think you were right in there somewhere about ~prod because everytime I go to the new link under my folder ~prod the session changes but i'll figure it out thanks I may just start the template from scratch and test sessions as I go along. How do you close a thread? or mark it answered?
rico1931 is offline   Reply With Quote
Old 07-01-2008, 06:54 PM   #13
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

im betting that %7E in this line...

background-image: url(/%7Eimages/site/gradiant.gif);

is hex for ~

remove all instances of ~
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-01-2008, 07:32 PM   #14
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

Quote:
Originally Posted by davidj View Post
im betting that %7E in this line...

background-image: url(/%7Eimages/site/gradiant.gif);

is hex for ~

remove all instances of ~
Thanks davidj and thats exactly what I did. I made my website again back to the basics and i'm still coming up with the same problem check it out
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>DMIC-006 Template</title>


<style type="text/css">
<!--
body {
    background-image: none;
    background-repeat: repeat-x;
    font-family: sans-serif;
    font-size: 10px;
}
#Container {
    width:815px;
    height:auto;
    z-index:1;
    background-color: #ECEBE8;
    margin: auto;
}
#Banner {
    left:17px;
    top:12px;
    width:800px;
    height:auto;
    z-index:2;
}
#LogIn {
    width:150px;
    height:auto;
    z-index:20;
    float: right;
}
#BannerLogo {
    border: 2px solid #ECEBE8;
}
#TopNav {
    width:auto;
    height:40px;
    z-index:2;
}
#LeftNav {
    left:19px;
    top:125px;
    width:100px;
    height:200px;
    z-index:2;
    float: left;
}
#Content {
    left:132px;
    top:125px;
    height:355px;
    z-index:3;
    margin: 1px;
}
-->
</style>

</head>

<body>
<div id="Container">
    <div id="Banner">



<div id="LogIn">
 Log In information will be inserted here.</div>

         <div id="BannerLogo">  <img src="/images/site/dmic_header.gif" alt="DMIC_Logo" width="600" height="90"/>      </div>
    </div>
    
  <div id="TopNav">  </div>
    
  <div id="LeftNav">
    Left nave will be place here    </div>
    
    <div id="Content">
    All content will be place here<br />
    This is the current sessionID:
    <% Response.Write(Session.SessionID) %>
    </div>
</div>

</body>
</html>
Its a basic site and holds the session variable for about 10-20 refreshes then it give you a new sessionID... is this normal? Does it suppose to give you a new sessionID after a certain amount of refreshes? I have nothing in my code to tell it so... oh boy what a day!
rico1931 is offline   Reply With Quote
Old 07-01-2008, 08:46 PM   #15
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

try removing the first slash from all instances where you have this path structure

/images/site/dmic_header.gif

dont start a path with a slash
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-01-2008, 09:00 PM   #16
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

still the same.. I even went back and checked the IIS to make sure it was set up right and stopped and started it back up every time I load the new files on it. I'm starting to think maybe it has to do something with templates or dreamweaver making the templates. I made a test page with only "This is your SessionID"
Code:
 <% Response.write(Session.SessionID) %>
and I refreshed the hell out of it and it stayed the same after holding down F5 for like a min. If I do that to this current site I get 2 seperate SessionID and I have pretty much stripped my template to nothing but the logo and div boxs. i'm so lost now.
rico1931 is offline   Reply With Quote
Old 07-01-2008, 09:03 PM   #17
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

im not savy enough with asp to help any further

sorry
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-01-2008, 09:29 PM   #18
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default

thank you very much davidj I really appreciate your help without you I wouldn't have come this far. If something changes in the next couple of days when I fix this I'll post it up. Until then or until I have my next question davidj Thank you
rico1931 is offline   Reply With Quote
Old 07-02-2008, 06:35 PM   #19
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default Update

So I found out that the problem is with the spry menu. I took it out and everything works fine and dandy. I am going to try to see if I can find out why this is happening. Maybe its something that DW code puts in? Or maybe its my template.. I'll update soon enough.
rico1931 is offline   Reply With Quote
Old 07-02-2008, 08:47 PM   #20
rico1931
 
Join Date: Jun 2008
Location: Buffalo
Posts: 198
Default Update 1.1

So I just thought to start from absolutely nothing and test session variables to find out where exactly it brakes and I found it!. The session variables begin to change once I added the .css page. I know I said Spry before but that can be null and void because I got the Spry Menu to work in a stand alone environment and it help session variables just fine.

The problem was I have a background image and for some reason it just doesn't like url(some/image/path) in the css. I have tried both attaching the css and then just placing the css in the same document and both times the session variables change. Go ahead and try it and if im prove please tell me what I am doing wrong!?!?!?!?!(p.s after hitting refresh 25times just a little test). This is driving me crazy! does anyone have any ideas why this is happening. Can someone please try it out and tell me that im just crazy and its something wrong with the IIS server so I can go complain to my boss and finally stop getting yelled at (yes I am an intern) haha thanks!

-X

Last edited by rico1931; 07-02-2008 at 08:55 PM..
rico1931 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com