472,787 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1941
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chewy509 | last post by:
Hi Everyone, I'll just start, and say I am not a PHP developer (I'm a sysadmin, who has gotten lumped with a non-working website). But since I like to do this type of stuff, I though I might...
13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
7
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
3
by: Will Woodhull | last post by:
Hi, I'm new here-- I've been reading the group for a couple of days. Nice group; I like the way n00b33 questions are handled. I've been using a Javascript routine in index.html to determine a...
12
by: D. Shane Fowlkes | last post by:
This is a repost (pasted below). Since my original post, I've double checked the system clock and set all IIS Session Timeout values to 10 minutes. Still ...the problem occurs. I've also...
3
by: Danny Crowell | last post by:
I have a question related to ASP.net sessions and static attributes. In an ASP.net application (MyApp) I have a class called Globals with a public static string called UserName. Will UserName be...
1
by: Duncan | last post by:
I have a strange problem with sessions in PHP 5. I have a simple script that prints a random number both as a string and a picture on the screen. When I run the script for the first time, it works...
13
Frinavale
by: Frinavale | last post by:
One of the most fundamental topics in web design is understanding how to pass information collected on one web page to another web page. There are many different ways you could do this: Cookies,...
7
by: pek | last post by:
OK, I've been having this problem for quite some time but never until now I really needed a solution. I have never thought of a work around, so I really need your help. Sorry if this has been...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.