468,133 Members | 1,211 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

ASP Sessions not working live

Hi there,

I am having trouble with an ASP login that uses sessions to control access
to certain pages. However the sessions are not being carried accross upon
using response.redirect.
I realise that this is the case that DNS names and IP addresses vary upon
whether it works or not, however how can i get around using sessions live on
the internet? and make them work>?

Hope you guys can help

Ta

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
Jul 19 '05 #1
14 1749
Are you response.redirecting to a different domain? What does your redirect
look like?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Hi there,

I am having trouble with an ASP login that uses sessions to control access
to certain pages. However the sessions are not being carried accross upon
using response.redirect.
I realise that this is the case that DNS names and IP addresses vary upon
whether it works or not, however how can i get around using sessions live on the internet? and make them work>?

Hope you guys can help

Ta

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.

Jul 19 '05 #2
****
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)
Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
****

Not to a different domain at all, in a sub folder of the same website, But
the redirect works, its the session that doesnt get carries accross


--
Guy
www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eF*************@TK2MSFTNGP12.phx.gbl...
Are you response.redirecting to a different domain? What does your redirect look like?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Hi there,

I am having trouble with an ASP login that uses sessions to control access to certain pages. However the sessions are not being carried accross upon using response.redirect.
I realise that this is the case that DNS names and IP addresses vary upon whether it works or not, however how can i get around using sessions
live on
the internet? and make them work>?

Hope you guys can help

Ta

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.


Jul 19 '05 #3
If you have the directory defined as its own application in IIS, the session
info will not carry to it. That's my guess as to why session data isn't
carrying, assuming that's what's happening.

http://www.aspfaq.com/show.asp?id=2157 for other causes.

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
****
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)
Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
****

Not to a different domain at all, in a sub folder of the same website, But
the redirect works, its the session that doesnt get carries accross


--
Guy
www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eF*************@TK2MSFTNGP12.phx.gbl...
Are you response.redirecting to a different domain? What does your

redirect
look like?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
Hi there,

I am having trouble with an ASP login that uses sessions to control access to certain pages. However the sessions are not being carried accross upon using response.redirect.
I realise that this is the case that DNS names and IP addresses vary upon whether it works or not, however how can i get around using sessions

live
on
the internet? and make them work>?

Hope you guys can help

Ta

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.



Jul 19 '05 #4
mmm, it works on my local test server no problem, very strange, dont think
its any of the things listed...

any ideas what i can do about it?

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:#j**************@tk2msftngp13.phx.gbl...
If you have the directory defined as its own application in IIS, the session info will not carry to it. That's my guess as to why session data isn't
carrying, assuming that's what's happening.

http://www.aspfaq.com/show.asp?id=2157 for other causes.

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
****
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)
Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
****

Not to a different domain at all, in a sub folder of the same website, But the redirect works, its the session that doesnt get carries accross


--
Guy
www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eF*************@TK2MSFTNGP12.phx.gbl...
Are you response.redirecting to a different domain? What does your

redirect
look like?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Oj**************@TK2MSFTNGP12.phx.gbl...
> Hi there,
>
> I am having trouble with an ASP login that uses sessions to control

access
> to certain pages. However the sessions are not being carried accross

upon
> using response.redirect.
> I realise that this is the case that DNS names and IP addresses vary

upon
> whether it works or not, however how can i get around using sessions

live
on
> the internet? and make them work>?
>
> Hope you guys can help
>
> Ta
>
> --
> Guy
>
> www.bradflack.com
>
> Please remove ANTI and SPAM from my
> email address before sending me an email.
>
>



Jul 19 '05 #5
> > If you have the directory defined as its own application in IIS, the
session
info will not carry to it.
Did you check that?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
mmm, it works on my local test server no problem, very strange, dont think
its any of the things listed...

any ideas what i can do about it?

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:#j**************@tk2msftngp13.phx.gbl...
If you have the directory defined as its own application in IIS, the

session
info will not carry to it. That's my guess as to why session data isn't
carrying, assuming that's what's happening.

http://www.aspfaq.com/show.asp?id=2157 for other causes.

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
****
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)
Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
****

Not to a different domain at all, in a sub folder of the same website,

But the redirect works, its the session that doesnt get carries accross


--
Guy
www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:eF*************@TK2MSFTNGP12.phx.gbl...
> Are you response.redirecting to a different domain? What does your
redirect
> look like?
>
> Ray at work
>
> "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> news:Oj**************@TK2MSFTNGP12.phx.gbl...
> > Hi there,
> >
> > I am having trouble with an ASP login that uses sessions to control access
> > to certain pages. However the sessions are not being carried accross upon
> > using response.redirect.
> > I realise that this is the case that DNS names and IP addresses vary upon
> > whether it works or not, however how can i get around using sessions live
> on
> > the internet? and make them work>?
> >
> > Hope you guys can help
> >
> > Ta
> >
> > --
> > Guy
> >
> > www.bradflack.com
> >
> > Please remove ANTI and SPAM from my
> > email address before sending me an email.
> >
> >
>
>



Jul 19 '05 #6
im not quite sure what you mean, the page is the application, outside the
directory, and it redirects to a page inside another directory on the same
site

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
If you have the directory defined as its own application in IIS, the

session
info will not carry to it.
Did you check that?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
mmm, it works on my local test server no problem, very strange, dont think its any of the things listed...

any ideas what i can do about it?

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:#j**************@tk2msftngp13.phx.gbl...
If you have the directory defined as its own application in IIS, the

session
info will not carry to it. That's my guess as to why session data isn't carrying, assuming that's what's happening.

http://www.aspfaq.com/show.asp?id=2157 for other causes.

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
> ****
> If Not RecordSet.EOF Then
> Dim struserLevel, strUName
> struserLevel = RecordSet.Fields("UserLevel")
> strUName = RecordSet.Fields("UName")
> Session("UserLevel") = cint(struserLevel)
> Session("UName") = strUName
> Response.Redirect("admin3/admin.asp")
> ****
>
> Not to a different domain at all, in a sub folder of the same website,
But
> the redirect works, its the session that doesnt get carries accross
>
>
>
>
> --
> Guy
> www.bradflack.com
>
> Please remove ANTI and SPAM from my
> email address before sending me an email.
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in

message > news:eF*************@TK2MSFTNGP12.phx.gbl...
> > Are you response.redirecting to a different domain? What does
your > redirect
> > look like?
> >
> > Ray at work
> >
> > "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> > news:Oj**************@TK2MSFTNGP12.phx.gbl...
> > > Hi there,
> > >
> > > I am having trouble with an ASP login that uses sessions to

control > access
> > > to certain pages. However the sessions are not being carried accross > upon
> > > using response.redirect.
> > > I realise that this is the case that DNS names and IP addresses vary > upon
> > > whether it works or not, however how can i get around using sessions > live
> > on
> > > the internet? and make them work>?
> > >
> > > Hope you guys can help
> > >
> > > Ta
> > >
> > > --
> > > Guy
> > >
> > > www.bradflack.com
> > >
> > > Please remove ANTI and SPAM from my
> > > email address before sending me an email.
> > >
> > >
> >
> >
>
>



Jul 19 '05 #7
Open your IIS manager on the live server.
Go to the site in question.
Right click on this "admin3" directory.
Click Properties

On the directory tab, at the bottom, is an "Application Settings" area.
There is a textbox with a label of "Application Name" to the left. To the
right of that textbox is a command button. That button will either say
Create or Remove. If it says Remove, that means that admin3 is its own
application (with its own sessions, global.asa, etc.).

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:OI*************@TK2MSFTNGP12.phx.gbl...
im not quite sure what you mean, the page is the application, outside the
directory, and it redirects to a page inside another directory on the same
site

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
> If you have the directory defined as its own application in IIS, the
session
> info will not carry to it.


Did you check that?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
mmm, it works on my local test server no problem, very strange, dont think its any of the things listed...

any ideas what i can do about it?

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:#j**************@tk2msftngp13.phx.gbl...
> If you have the directory defined as its own application in IIS, the
session
> info will not carry to it. That's my guess as to why session data isn't > carrying, assuming that's what's happening.
>
> http://www.aspfaq.com/show.asp?id=2157 for other causes.
>
> Ray at work
>
> "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> news:uS**************@TK2MSFTNGP12.phx.gbl...
> > ****
> > If Not RecordSet.EOF Then
> > Dim struserLevel, strUName
> > struserLevel = RecordSet.Fields("UserLevel")
> > strUName = RecordSet.Fields("UName")
> > Session("UserLevel") = cint(struserLevel)
> > Session("UName") = strUName
> > Response.Redirect("admin3/admin.asp")
> > ****
> >
> > Not to a different domain at all, in a sub folder of the same website, But
> > the redirect works, its the session that doesnt get carries accross > >
> >
> >
> >
> > --
> > Guy
> > www.bradflack.com
> >
> > Please remove ANTI and SPAM from my
> > email address before sending me an email.
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in

message
> > news:eF*************@TK2MSFTNGP12.phx.gbl...
> > > Are you response.redirecting to a different domain? What does your > > redirect
> > > look like?
> > >
> > > Ray at work
> > >
> > > "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> > > news:Oj**************@TK2MSFTNGP12.phx.gbl...
> > > > Hi there,
> > > >
> > > > I am having trouble with an ASP login that uses sessions to

control
> > access
> > > > to certain pages. However the sessions are not being carried

accross
> > upon
> > > > using response.redirect.
> > > > I realise that this is the case that DNS names and IP
addresses vary
> > upon
> > > > whether it works or not, however how can i get around using

sessions
> > live
> > > on
> > > > the internet? and make them work>?
> > > >
> > > > Hope you guys can help
> > > >
> > > > Ta
> > > >
> > > > --
> > > > Guy
> > > >
> > > > www.bradflack.com
> > > >
> > > > Please remove ANTI and SPAM from my
> > > > email address before sending me an email.
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 19 '05 #8
i dont have access to the live IIS server, as its hosted with another
company, but i have now put the page within the same directory as the page
with the response.redirect, still doesnt work ;-(

--
Guy
www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:em**************@tk2msftngp13.phx.gbl...
Open your IIS manager on the live server.
Go to the site in question.
Right click on this "admin3" directory.
Click Properties

On the directory tab, at the bottom, is an "Application Settings" area.
There is a textbox with a label of "Application Name" to the left. To the
right of that textbox is a command button. That button will either say
Create or Remove. If it says Remove, that means that admin3 is its own
application (with its own sessions, global.asa, etc.).

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:OI*************@TK2MSFTNGP12.phx.gbl...
im not quite sure what you mean, the page is the application, outside the
directory, and it redirects to a page inside another directory on the same site

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:e3**************@TK2MSFTNGP12.phx.gbl...
> > If you have the directory defined as its own application in IIS, the > session
> > info will not carry to it.

Did you check that?

Ray at work

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
> mmm, it works on my local test server no problem, very strange, dont

think
> its any of the things listed...
>
> any ideas what i can do about it?
>
> --
> Guy
>
> www.bradflack.com
>
> Please remove ANTI and SPAM from my
> email address before sending me an email.
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in

message > news:#j**************@tk2msftngp13.phx.gbl...
> > If you have the directory defined as its own application in IIS, the > session
> > info will not carry to it. That's my guess as to why session data

isn't
> > carrying, assuming that's what's happening.
> >
> > http://www.aspfaq.com/show.asp?id=2157 for other causes.
> >
> > Ray at work
> >
> > "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> > news:uS**************@TK2MSFTNGP12.phx.gbl...
> > > ****
> > > If Not RecordSet.EOF Then
> > > Dim struserLevel, strUName
> > > struserLevel = RecordSet.Fields("UserLevel")
> > > strUName = RecordSet.Fields("UName")
> > > Session("UserLevel") = cint(struserLevel)
> > > Session("UName") = strUName
> > > Response.Redirect("admin3/admin.asp")
> > > ****
> > >
> > > Not to a different domain at all, in a sub folder of the same

website,
> But
> > > the redirect works, its the session that doesnt get carries accross > > >
> > >
> > >
> > >
> > > --
> > > Guy
> > > www.bradflack.com
> > >
> > > Please remove ANTI and SPAM from my
> > > email address before sending me an email.
> > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in
message
> > > news:eF*************@TK2MSFTNGP12.phx.gbl...
> > > > Are you response.redirecting to a different domain? What does

your
> > > redirect
> > > > look like?
> > > >
> > > > Ray at work
> > > >
> > > > "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> > > > news:Oj**************@TK2MSFTNGP12.phx.gbl...
> > > > > Hi there,
> > > > >
> > > > > I am having trouble with an ASP login that uses sessions to
control
> > > access
> > > > > to certain pages. However the sessions are not being carried
accross
> > > upon
> > > > > using response.redirect.
> > > > > I realise that this is the case that DNS names and IP addresses vary
> > > upon
> > > > > whether it works or not, however how can i get around using
sessions
> > > live
> > > > on
> > > > > the internet? and make them work>?
> > > > >
> > > > > Hope you guys can help
> > > > >
> > > > > Ta
> > > > >
> > > > > --
> > > > > Guy
> > > > >
> > > > > www.bradflack.com
> > > > >
> > > > > Please remove ANTI and SPAM from my
> > > > > email address before sending me an email.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 19 '05 #9

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
i dont have access to the live IIS server, as its hosted with another
company, but i have now put the page within the same directory as the page
with the response.redirect, still doesnt work ;-(


Okay, we'll start over then. How do you know it doesn't work? What does
this do:

<%
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)

RESPONSE.WRITE STRUSERLEVEL
RESPONSE.WRITE "<BR>"
RESPONSE.WRITE Session("UserLevel")
RESPONSE.END

Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
%>
Jul 19 '05 #10
Sorry its been so late getting back, long old weekend....

I did what you said and it displays what i want it to fine, on the same
page, but doesnt do the redirect (hence response.end)

Thanks for this

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
i dont have access to the live IIS server, as its hosted with another
company, but i have now put the page within the same directory as the page with the response.redirect, still doesnt work ;-(


Okay, we'll start over then. How do you know it doesn't work? What does
this do:

<%
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)

RESPONSE.WRITE STRUSERLEVEL
RESPONSE.WRITE "<BR>"
RESPONSE.WRITE Session("UserLevel")
RESPONSE.END

Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
%>

Jul 19 '05 #11
However with the redirect in there it doesnt work, so why isnt the session
redirecting?
Thanks again
--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Sorry its been so late getting back, long old weekend....

I did what you said and it displays what i want it to fine, on the same
page, but doesnt do the redirect (hence response.end)

Thanks for this

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
i dont have access to the live IIS server, as its hosted with another
company, but i have now put the page within the same directory as the page with the response.redirect, still doesnt work ;-(


Okay, we'll start over then. How do you know it doesn't work? What does this do:

<%
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)

RESPONSE.WRITE STRUSERLEVEL
RESPONSE.WRITE "<BR>"
RESPONSE.WRITE Session("UserLevel")
RESPONSE.END

Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
%>


Jul 19 '05 #12
This then takes us back to the original theories, one of which was that that
directory to which you are redirecting is part of a different application in
your IIS settings. If you do not have access to your server, ask your host
to check if it's an application or to remove the application settings of
that directory. If it's a virtual directory, it will be its own
application, by default.

Ray at home

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
However with the redirect in there it doesnt work, so why isnt the session
redirecting?
Thanks again
--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Sorry its been so late getting back, long old weekend....

I did what you said and it displays what i want it to fine, on the same
page, but doesnt do the redirect (hence response.end)

Thanks for this

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:ec**************@TK2MSFTNGP10.phx.gbl...
> i dont have access to the live IIS server, as its hosted with another > company, but i have now put the page within the same directory as
the
page
> with the response.redirect, still doesnt work ;-(
>

Okay, we'll start over then. How do you know it doesn't work? What

does this do:

<%
If Not RecordSet.EOF Then
Dim struserLevel, strUName
struserLevel = RecordSet.Fields("UserLevel")
strUName = RecordSet.Fields("UName")
Session("UserLevel") = cint(struserLevel)

RESPONSE.WRITE STRUSERLEVEL
RESPONSE.WRITE "<BR>"
RESPONSE.WRITE Session("UserLevel")
RESPONSE.END

Session("UName") = strUName
Response.Redirect("admin3/admin.asp")
%>



Jul 19 '05 #13
Well it is in a directory of another site, so the root folder is infact not
the root folder.
So basically i need to tell the hosting company that it needs to be its own
application (the directory in which the index.htm page exists, or the
directory that the default.asp page exists?)

Cheers

--
Guy

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
This then takes us back to the original theories, one of which was that that directory to which you are redirecting is part of a different application in your IIS settings. If you do not have access to your server, ask your host to check if it's an application or to remove the application settings of
that directory. If it's a virtual directory, it will be its own
application, by default.

Ray at home

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
However with the redirect in there it doesnt work, so why isnt the session
redirecting?
Thanks again
--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Sorry its been so late getting back, long old weekend....

I did what you said and it displays what i want it to fine, on the same page, but doesnt do the redirect (hence response.end)

Thanks for this

--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:O6**************@TK2MSFTNGP10.phx.gbl...
>
> "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> news:ec**************@TK2MSFTNGP10.phx.gbl...
> > i dont have access to the live IIS server, as its hosted with

another > > company, but i have now put the page within the same directory as the page
> > with the response.redirect, still doesnt work ;-(
> >
>
> Okay, we'll start over then. How do you know it doesn't work? What

does
> this do:
>
> <%
> If Not RecordSet.EOF Then
> Dim struserLevel, strUName
> struserLevel = RecordSet.Fields("UserLevel")
> strUName = RecordSet.Fields("UName")
> Session("UserLevel") = cint(struserLevel)
>
> RESPONSE.WRITE STRUSERLEVEL
> RESPONSE.WRITE "<BR>"
> RESPONSE.WRITE Session("UserLevel")
> RESPONSE.END
>
> Session("UName") = strUName
> Response.Redirect("admin3/admin.asp")
> %>
>
>



Jul 19 '05 #14
It's a physical directory in another site that is setup as a virtual
directory in your first site? Chances are it is its own application then,
as when you setup a virtual directory in IIS like this, it defaults it to
being its own application. What you want to have them do is REMOVE the
application settings on this virtual directory. Take a look at your own
local server to see what I mean.

Ray at home

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:uZ**************@TK2MSFTNGP11.phx.gbl...
Well it is in a directory of another site, so the root folder is infact not the root folder.
So basically i need to tell the hosting company that it needs to be its own application (the directory in which the index.htm page exists, or the
directory that the default.asp page exists?)

Cheers

--
Guy

Please remove ANTI and SPAM from my
email address before sending me an email.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
This then takes us back to the original theories, one of which was that that
directory to which you are redirecting is part of a different application in
your IIS settings. If you do not have access to your server, ask your

host
to check if it's an application or to remove the application settings of
that directory. If it's a virtual directory, it will be its own
application, by default.

Ray at home

"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
However with the redirect in there it doesnt work, so why isnt the session redirecting?
Thanks again
--
Guy

www.bradflack.com

Please remove ANTI and SPAM from my
email address before sending me an email.
"Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
> Sorry its been so late getting back, long old weekend....
>
> I did what you said and it displays what i want it to fine, on the same > page, but doesnt do the redirect (hence response.end)
>
> Thanks for this
>
> --
> Guy
>
> www.bradflack.com
>
> Please remove ANTI and SPAM from my
> email address before sending me an email.
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message > news:O6**************@TK2MSFTNGP10.phx.gbl...
> >
> > "Guy Hocking" <gu*@ANTIbradflack.SPAMcom> wrote in message
> > news:ec**************@TK2MSFTNGP10.phx.gbl...
> > > i dont have access to the live IIS server, as its hosted with

another
> > > company, but i have now put the page within the same directory as the
> page
> > > with the response.redirect, still doesnt work ;-(
> > >
> >
> > Okay, we'll start over then. How do you know it doesn't work?

What does
> > this do:
> >
> > <%
> > If Not RecordSet.EOF Then
> > Dim struserLevel, strUName
> > struserLevel = RecordSet.Fields("UserLevel")
> > strUName = RecordSet.Fields("UName")
> > Session("UserLevel") = cint(struserLevel)
> >
> > RESPONSE.WRITE STRUSERLEVEL
> > RESPONSE.WRITE "<BR>"
> > RESPONSE.WRITE Session("UserLevel")
> > RESPONSE.END
> >
> > Session("UName") = strUName
> > Response.Redirect("admin3/admin.asp")
> > %>
> >
> >
>
>



Jul 19 '05 #15

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Chewy509 | last post: by
13 posts views Thread by jing_li | last post: by
7 posts views Thread by John | last post: by
3 posts views Thread by Will Woodhull | last post: by
12 posts views Thread by D. Shane Fowlkes | last post: by
3 posts views Thread by Danny Crowell | last post: by
1 post views Thread by Duncan | last post: by
7 posts views Thread by pek | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.