Server Times Out With ASPSESSIONID Cookie

I am using the XMLHTTP object to request a page from within another ASP page. For my scenario, the two pages should operate in the same session. However, when I request the second page, a new session is created. This makes sense since it is coming from a different client (the XMLHTTP object as opposed to my browser).

I've tried to pass the ASPSESSIONID cookie along with the XMLHTTP post, but every time I pass the valid cookie, the XMLHTTP request times out.

Has anyone experienced anything similar to this? Is what I am trying to accomplish even possible?

View Replies


ADVERTISEMENT

IE Does Not Set-Cookie With ASPSESSIONID When User Comes With JSESSIONID

I have code written in VBScript that accepts a POST submission from an external server to perform an auto-login to our website. I am experiencing an issue with Internet Explorer ONLY that I have determined using Fiddler.

The problem is that when I POST to this page, I need to set a few session variables that are passed on to the following page after logging in. But using fiddler, I have realized that for some reason, in IE, the "Set-cookie" statement in the headers is never acted on by the server. On all following pages the "set-cookie" header is sent on every page, but the ASP SESSION header is never set that indicates the session was started.

If I do the same test in Firefox, it works perfectly fine, no problem. So it seems IE is the issue.

One other fairly important piece of the problem appears to be that the external server that is initiating the POST submission is running Java, so when the user is on the external server their browser is maintaing a JSESSIONID value. But when they submit the POST form over to our server, the Set-Cookie directive is trying to set an ASPSESSIONID, which is never accepted by the browser...

So is it possible that for some reason IE is not able to handle a user coming from a JSESSIONID over to an ASPSESSIONID?

I need to somehow work around this, or somehow force the ASPSESSIONID to kick in, because it is critical that I can set session variables for use on later pages.

View Replies View Related

ASPSessionID

I can't seem to find again where this cookie is placed by IIS. Can someone
quickly respond with its location. Thank you.
Also, does anyone know if this system created cookie has the same attribute
of SECURE as does a developer created cookie? I know it's read only but how
can I secure it. I'm using 128 SSL in addition.

View Replies View Related

Question About ASPSESSIONID

It was recently brought to my attention that a cookie that gets set for access to our intranet is being appended with ASPSESSIONIDSCBRRTTR followed by a long string of random characters and no one seems to know who or what is setting this.

Can anyone provide me with some insight? Is this an automatic ASP or IIS function or is it something to be concerned about?

View Replies View Related

Change ASPSessionID

How do you change the ASPSessionID during a web session? I have an ASP
application in SSL. The first screen is a login screen, which requests user
id and password. An ASPSessionID is assigned for this page. Once the user
is authenticated by valid id/pwd, the second page starts the real
applicaiton. I want to change the ASPSessionID to be different from the
first login page, which was issued to an unauthenticated user. How do I do
that in ASP?

View Replies View Related

Pass Cookie From One Domain To Another On The Same Server

Is there an easier way to handle that? I used Javascript to handle this when our two domains are hosted on two different servers(on different networks) and our search engine marketing people don't like the javascript links since they think the links are not favorable to a search robot.

Now our company is thinking about hosting these two domians on the same server, So I am wodering if there is any easy way to do that....

View Replies View Related

Login User With Cookie From Another Server

We have an intranet which is personalized using a cookie which we set. I have an outside vendor who is developing an application which will live on a seperate server. Is there a way they can read the cookie which we set to log user into their application so that we can make it a seamless transition?

View Replies View Related

IE Not Sending Cookie Info To Server

I am developing an asp.net 2.0 application using visual studio 2005 on my
computer and I am getting very inconsistent results when I test on my
computer versus from other computers.

The symptom of the problem is that the web server does not receive cookie
information from the browser after I have properly logged in to the web
server. Without this information, my session state keeps on getting lost and
the authentication logic sends me back out to the login page.

Using Fiddler, I have narrowed down the problem to what I think is the
browser not always sending cookie information (containing the session and
authentication ticket) to the web server.

This is what I have tried:

1. If I run the browser on the same computer as the webserver, I see that
the cookies are sporadically not being sent from the browser for the .aspx
pages.

2. If I run the browser from a 2nd and 3rd computer and hit the web server
on the first computer, I see that the cookies are always being sent for the
..aspx pages.

3. If on the webserver I force asp.net to assume cookieless clients, my
browser on the same computer works fine since the "cookie" information is
part of the URL.

I haven't tried installing my dev environment on the 2nd or 3rd computers
and try to see how the browser behaves when hitting the new webserver. I am
trying to avoid that for now. But from my 1st computer, if I run the browser
against a totally different web application I have seen the same behavior in
my Fiddler logs. The browser sporadically does not send cookie information
to the server.

I suspect that it may be something specific to the IE browser on my
computer. Maybe there is some security program or setting that is causing
this issue on this computer and not others. Does anyone have any thoughts or
ideas on what this problem could be? I want to find out the problem to make
sure that when I deploy my web application, this issue does not resurface on
my user's computers.

View Replies View Related

Cookie Don't Persist Aftes Server.transfer

i'm setting up my web new server. i see that cookies do not persist after a Server.Transfer or Response.Redirect although i do expire them the next year.

View Replies View Related

Response.cookie In Session_onstart Event And IE 6.0 Cookie Acceptance

When I set a cookie in global.asa in the sub session_onstart, even if
I have "privacy" in IE 6.X set to "block all cookies" the cookie is
still set, and I can get it on other pages.

I can't find an article that addresses this as a specific issue. Why
does the browser get the cookie when it is set in the session_onstart
event even when I have "block all cookies" set?

View Replies View Related

Session Cookie Vs. Regular Cookie

I want to know what's the differences between session cookie and regular cookie.

In ASP, when we create cookie, we do the following to identify an user:

Response.Cookies("name") = value

Is this regular cookie? How about session cookie? and when to use which?

View Replies View Related

Script Times Out

well, the following script that i wrote using the aspSmartMail component, keeps timing out on me. i tried setting the timeout higher through both IIS and in the script itself, but all that does that it take longer for it to timeout.

i have written a few email programms using this component, so i don't think it is the component. i have just never tried sending emails with it automatically that each have certain unique fields in it. well anyways, here is the code:

View Replies View Related

Download Times

I need to show how long a given file size will download.

View Replies View Related

Pages Times Out

I've written a page that uses a emailer component and it keeps timing out.
It takes 2-3 seconds to send each mail, gets part way through the list of
recipients and dies.I have tried changing the Script Timeout setting in IIS to some huge number(2147483647?).I hve tried setting Server.ScriptTimeout = 0 and Server.ScriptTimeout =2147483647.
None of these make any difference. What can I do now?

View Replies View Related

Compare Two Times

I want to compare two times 1 time is in a variable and the other time is todays time.

i want to get the time in h.m.s

e.g.

12.30.00
13.00.00

this would then output

00.30.00

which i then can then split and if their are 0 i can have get 30 min out of it.

View Replies View Related

Substract Two Times

I need to subtract two times
Example : 1:45 AM - 2:55 PM or 5:45 PM -1:00 AM

View Replies View Related

Loading Times

I have a asp page which pulls alot of data back from a SQL database, is thier any way to show the page while its loading.

I did some diging and found this:

<%
response.buffer=true
response.flush
%>

View Replies View Related

Multiple Times

I have a class that access an MS SQL database.I have another class also accesses an MS SQL database and this second class uses objects from the first class.I have a third class using the DB and objects of the second class.

Each of these classes contain all the code needed to access the database and this means much duplicated code. What I'd like to know is if there is a way to avoid the duplicated code?

I know I could write the code once,then do an #include to include the code into the class,but that still means multiple occurances of the code.

View Replies View Related

Loop Times Out

There is 600 lines of code. This page gets available rooms from RoomInfo and compares the rooms againest rooms in use from EventRoom by RoomID. RoomInfo RoomID field is text. It can contain multiple rooms (i.e. 5,6,7) based on room setup type. I had to do it this way so that users could book multiple rooms based on configuration and how many people.

Line 412 is where the time out occurs. Also if I use split on rs2(RoomID) {line 415} then I can't start at 0, I have to start on 1. Which means 1 room is not being checked. I tried to annotate the code as best as possible. The page is zipped so you can download and view it. It will bomb if you try to run it on the server it is being hosted on.

View Replies View Related

How Many Times Character Appear

I've done this before but cannot remember how. I have a field (FIELDNAME) in a sql2k environment. I just need to know how many times an "_" appears in that field. I cannot figure it out right now.

View Replies View Related

Calculate The Differnce Between Two Times

I am trying to calculate (in minutes) the difference between two times. In the database the times are in this format:

Start Time (Game_Time): 1/1/1900 12:00:00 PM

End Time (GameEndTime): 1/1/1900 1:00:00 PM

Here is the code I'm trying:

Code:

GameLength = DateDiff("n",Game_Time,GameEndTime)

The result is: 780

I would expect it to be: 60 minutes

What am I doing wrong?

View Replies View Related

Display Image Between Times

I need to be able to display an image if the time is between two times. Here's the code I have, but it doesn't work.

dim strLink1, strLink2, strLink3
dim tcurrent, tstart1, tend1, tstart2, tend2

tcurrent = now()
tstart1 = "3/1/2006 7:00:00 PM"
tend1 = "3/1/2006 8:00:00 PM"

If Now() >= tstart1 OR Now() <= tend1 Then
'if tcurrent > tstart1 or tcurrent < tend1 then
strLink1 = "/images/2.jpg"
else
strLink1 = "/images/1.jpg"
end if

When I look at the page, the image never changes. It just always displays 2.jpg and not 1.jpg. I need help ASAP!

View Replies View Related

Display Image Between Times

How would I do it for DATE instead of Day of the week?

View Replies View Related

Long Response Times

I am trying to simply print to screen all the data in a colum from a .mdb file. Later I will do more advanced things but for now this would be good.

What I have WORKS, but takes a LONG time to retrieve the first record, if I tell it to retrieve more than one row it will time out. I was hoping to connect to the file directly and not have to create an ODBC connection. The code seems simple enough and the server is no dud (p4 2.4ghz) so do I need to setup a DSN and connect to it that way? Code:

View Replies View Related

Changing Image At Certain Times

im making the web site for a small internet radio station and would like to add the feature to show which DJs are currently on air. I would like to do this by swaping an image at certain times or even dates.

For instance

dim image

if time = 05:15:00 then image = bob else
if time = 23:30:00 then image = dave
end if

Something along those lines but I dont know the exact code required to do this.

Would be really greatful for any help, I think it would be a nice feature for our listeners.

View Replies View Related

Times Being Returned As Dates.

I'm currently developing on IIS 5, ASP 3 and MySQL 4.1 using the latest ODBC driver from MySQL.

Any time field I have return from the database is returned as the current date. I've tried every table which has a date, created tables which soley keep records on the date.

I've submitted the date from MySQL Query browser using CURRENT_TIME and from an ASP page. Both submit fine.

I've returned the record using a Recordset to move through each and filled an array using GetRows().

View Replies View Related

TimeOut And Refresh Times

My interest is to guarantee that my users never need to logon again. Can’t put a session.Timeout to high because of memory on server. So how can I get the session refreshed before session times out?

View Replies View Related

Approximating Download Times

I'm sure you've seen them all over the place. Before downloading a file, it tells you the size of the file and the approximate download timedepending on your connection.

I have found a lot of javascript calculators out there where you input the size of the file and it calculates the time you need. These provide the end result I need, but 1) I hate javascript with a passion and 2) I want the download times to be displayed automatically when you select a file to download.

As a last resort, I can spend some time re-writing it for ASP, pulling the file info directly from the file in question (which would be a variable) rather than requiring an input of the size; but I'm wondering if anyone has an ASP version already done. Save me some time and hassle that way.

View Replies View Related

Loop 5 Times Then Stop

I am creating a news page for a fun website just to learn, it has a simple html form that lets me post new news items to a MSSQL database.

The thing I am trying to do now is have the loop only run about 5 times, so that it displays only the last 5 news items from the database, I will then create an archive page which will display them all.

I have a book that I read and I found the for..next statement and I t would work nicely from what I am reading,

View Replies View Related

Database Querying Times

I ported a script I made over to SQL Server 2k from Access and went from queries that took a tenth of a second to up to 30 seconds! Typically they are between 5-10 seconds.

All I can think of is I screwed something up in the connection procedure, and here that is:

Code:
set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionTimeout=30
objConn.Open "Driver={SQL Server};" & _
"Server=ipaddress;" & _
"Address=ipaddress,1433;" & _
"Network=DBMSSOCN;" & _
"Database=databasename;" & _
"Uid=userid;" & _
"Pwd=userpass"
set recordset=server.createobject("adodb.recordset")

View Replies View Related

Displaying Event Times

I'm almost finished creating a simple events calendar that will allow users to book rooms and see at a glance, which rooms are booked, and at what times. Unfortunately I've hit a brick wall with the final stages of development.

I've created a screen shot of what I would like to display on the screen (see below). I can't for the life of me figure out how I'm going draw each cell and populate it with the database information (should it require populating).

View Replies View Related

Sending An Email At Defined Times.

I have a project where I want an email to be sent at a certain time, say 10 PM every night if there are new hits to my site. The email will be only going to my email address. does any one know of a way to do this?

View Replies View Related

Email Code Run Multiple Times

I have an html page with standard contact us type form. This when posted goes to an asp page which stores the data and then sends an email to me. It then redirects back to the original email form with a message thanking the user for the contact.

The problem is I am getting multiple spoof emails which are being generated form the asp page. Some one is accessing and then just refershing the page so it generates numerous emails.

Is there a way of either hiding the asp page in the original HTML form or checking that the page has been called by the html form rather than just refreshed.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved