hi
i'm setting up my web new server
i see that cookies do not persist
after a Server.Transfer or Response.Redire ct
although i do expire them the next year
thanks 6 4961
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******** ********@TK2MSF TNGP10.phx.gbl. .. hi i'm setting up my web new server i see that cookies do not persist after a Server.Transfer or Response.Redire ct although i do expire them the next year
thanks
thanks
i am redirect to another page
on the same folder
"Curt_C [MVP]" <software_AT_da rkfalz.com> escribió en el mensaje
news:%2******** ********@TK2MSF TNGP10.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******** ********@TK2MSF TNGP10.phx.gbl. .. hi i'm setting up my web new server i see that cookies do not persist after a Server.Transfer or Response.Redire ct although i do expire them the next year
thanks
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.cookie s("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_da rkfalz.com> escribió en el mensaje
news:%2******** ********@TK2MSF TNGP10.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******** ********@TK2MSF TNGP10.phx.gbl. .. hi i'm setting up my web new server i see that cookies do not persist after a Server.Transfer or Response.Redire ct although i do expire them the next year
thanks
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_da rkfalz.com> escribió en el mensaje
news:%2******** ********@TK2MSF TNGP10.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******** ********@TK2MSF TNGP10.phx.gbl. .. hi i'm setting up my web new server i see that cookies do not persist after a Server.Transfer or Response.Redire ct although i do expire them the next year
thanks
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******** ******@TK2MSFTN GP09.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_da rkfalz.com> escribió en el mensaje news:%2******** ********@TK2MSF TNGP10.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******** ********@TK2MSF TNGP10.phx.gbl. .. hi i'm setting up my web new server i see that cookies do not persist after a Server.Transfer or Response.Redire ct although i do expire them the next year
thanks
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_da rkfalz.com> escribió en el mensaje
news:e9******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP09.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_da rkfalz.com> escribió en el mensaje news:%2******** ********@TK2MSF TNGP10.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******** ********@TK2MSF TNGP10.phx.gbl. .. > hi > i'm setting up my web new server > i see that cookies do not persist > after a Server.Transfer or Response.Redire ct > although i do expire them the next year > > thanks > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
want to override the last value set in the onunload event, it has no
effect. The next onload still has the old value.
Any ideas? The following code simulates the problem I experience.
--------------------------------------------------
|
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 change the setting in web.config
everything seems to work fine as long as I'm using relative paths. The
problem is I've got a menuing system that's generated from a site-wide
template - so I use a fixed path from the application root - (ie:...
|
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 true and I can see the
cookie file in the cookies folder on my disk. However, after I migrated the
application to a server, the cookie is no longer written to the disk. It's
still in memory and as long as I don't close the browser instance, the...
|
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 site. (So that I can
tract what is purchased) I all works fine until checkout time because at
check out time I have to use a Response.Redirect and I need to pass the
cookies and the processing onto the remote server. I don't want to handle
the...
|
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 "," character. This seems to be
incorrectly parsed during GetValues().
A simple example shows it best (there are 2 .aspx pages and an output):
AddHeaders.aspx:
<%@ Page language="c#" %>
| |
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 exhausted all my other
options, so I have to get this scenario working). Basically, if I POST the
data normally, it works fine, except the target page has a new session ID,
so I lost the session data that I *do* transfer around. However, if I...
|
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 ASP.NET always sets the Session cookie domain to
the full domain (e.g. "www.mydomain.com") instead of the parent domain (e.g.
"mydomain.com")
The problem with this is when the visitor goes to a different sub-domain
(e.g. "search.mydomain.com"),...
|
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 authentication cookie. Are there
dangers to doing this? How easily can a cookie be tampered with? Is there any
fast setups, or things I can do for securing the cookie? I'm thinking someone
could tamper with the user id portion of the cookie and...
|
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.
I have a time-out of one minute and indeed, it directs me to the login if i
wait to long.
The slidingExpiration does it's work also.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |