473,320 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

cookie don't persist aftes server.transfer

hi
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

thanks
Jul 19 '05 #1
6 4947
where are you redirecting to?
Is it another site, wont work then

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
hi
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

thanks

Jul 19 '05 #2
thanks
i am redirect to another page
on the same folder
"Curt_C [MVP]" <software_AT_darkfalz.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP10.phx.gbl...
where are you redirecting to?
Is it another site, wont work then

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
hi
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

thanks


Jul 19 '05 #3
i'm sorry...
cookies don't persist after "SUMBIT". ...

i have (seudo code)

some pages, at begining:
-------------------------
#include login_userType_Z.inc

login_userType_Z.inc
------------------------
if not exists session then
response.cookies("try_login")= "some info..."
server.transfer LOGIN.asp
end

LOGIN.asp
------------
*** at this point, cookie is STILL OK ***
<form action= "LOGIN2.asp">
<html for gather user id+pwd>
<submit>

LOGIN2.asp
-------------
request.cookies *** at this point, after "SUBMIT" I lost cookies ***
check at database ( user id , pwd )
if ok
give him a session
endif


"Curt_C [MVP]" <software_AT_darkfalz.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP10.phx.gbl...
where are you redirecting to?
Is it another site, wont work then

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
hi
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

thanks


Jul 19 '05 #4
well,
now i see that the problem
arise in the virtual path design:
the App is assigned to a virtual folder . . .

please tell me if i am rigt:

the cookie is created
at a virtual "vRoot" folder
then the control is passed by "Transfer"
to a page in another folder
remaining under "vRoot context"

but, when the page is "Submited"
IIS goes thru other virtual folder, under other context

does it is right ?
"Curt_C [MVP]" <software_AT_darkfalz.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP10.phx.gbl...
where are you redirecting to?
Is it another site, wont work then

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
hi
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

thanks


Jul 19 '05 #5
not unless the other page is under a different vRoot.
Do cookies work at all for you?
Set then on one page, then redirect to another and read them in...are they
there?
You say that if page1.asp posts to page2.asp (in the same vRoot) that they
aren't there?
Just clarifying....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
well,
now i see that the problem
arise in the virtual path design:
the App is assigned to a virtual folder . . .

please tell me if i am rigt:

the cookie is created
at a virtual "vRoot" folder
then the control is passed by "Transfer"
to a page in another folder
remaining under "vRoot context"

but, when the page is "Submited"
IIS goes thru other virtual folder, under other context

does it is right ?
"Curt_C [MVP]" <software_AT_darkfalz.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP10.phx.gbl...
where are you redirecting to?
Is it another site, wont work then

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
hi
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

thanks



Jul 19 '05 #6
thanks curt
you are right

i moved the submit-ed (2nd) page
to the same folder than submit-er (1st) page
and works fine

i commited a mistake when
re-constructed the website :

now, i moved the secondary virtual folder
as a child of the virtual root
as must it be (in my app)
changing
|--vroot
| |-- page1.asp .... sumbiter
|--vfolder
|-- page2.asp .... sumbited

to
|--vroot
|-- page1.asp .... sumbiter
|--vfolder
|-- page1.asp .... sumbited

now it works
thanks for your answers

"Curt_C [MVP]" <software_AT_darkfalz.com> escribió en el mensaje
news:e9**************@TK2MSFTNGP11.phx.gbl...
not unless the other page is under a different vRoot.
Do cookies work at all for you?
Set then on one page, then redirect to another and read them in...are they
there?
You say that if page1.asp posts to page2.asp (in the same vRoot) that they
aren't there?
Just clarifying....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:Oc**************@TK2MSFTNGP09.phx.gbl...
well,
now i see that the problem
arise in the virtual path design:
the App is assigned to a virtual folder . . .

please tell me if i am rigt:

the cookie is created
at a virtual "vRoot" folder
then the control is passed by "Transfer"
to a page in another folder
remaining under "vRoot context"

but, when the page is "Submited"
IIS goes thru other virtual folder, under other context

does it is right ?
"Curt_C [MVP]" <software_AT_darkfalz.com> escribió en el mensaje
news:%2****************@TK2MSFTNGP10.phx.gbl...
where are you redirecting to?
Is it another site, wont work then

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Hernán Castelo" <hc******@cedi.frba.utn.edu.ar> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> hi
> 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
>
> thanks
>
>



Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael | last post by:
I am reading and setting a cookie using JavaScript in the BODY onload and onunload events respectively. This works fine. However when I use ASP to set the cookie under some condition where I...
5
by: | last post by:
Hi, I'm trying to use the cookie munging session handling behaviour of asp.net instead of cookies themselves as I'm finding quite a few people are barring cookies (especially AOL users). If I...
2
by: BH | last post by:
I developed a small web app using the FormsAuthentication class to set a cookie (FormsAuthentication.SetAuthCookie(value, isPersist)). The cookie persists fine on my local PC when "isPersist" is...
0
by: vMike | last post by:
I don't know if I can explain this here, but I will try. I am using WebRequest/WebResponse to get product information from another website then put the selections in a shopping cart of the remote...
6
by: Jason Collins | last post by:
There seems to be an inconsistency (bug?) in the way the Set-Cookie header is handled by the WebHeaderCollection. That is, the values of Set-Cookie, when an Expires is specified, contain the ","...
2
by: Keith Patrick | last post by:
I'm trying to programmatically post data to another page within my ASP.Net app. Not POSTing is not an option (I can't store this data in my session, context, hidden fields, or anything else...I've...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
4
by: gl | last post by:
I'm currently making a web app that stores a user id in a cookie, and builds user information off of that in the differnt pages of the site. The cookie is created on login, and is separate from the...
15
by: Edwin Knoppert | last post by:
I have searched but info is limitted. In my test app i used a non persistant cookie for forms authentication. slidingExpiration is set to true On run and close and rerun the login remains ok....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.