Re: How to tell when a user first log's in?

2001-05-14 Thread Johan Fredriksson

with javascript...

( on the first page the user receives after login... )

try something like

if (parent.frame["framename"].location=notyetloggedin.html)
parent.frame["framename"].location=nowtheuserisloggedin.jsp);

Johan
- Original Message -
From: "Jeremy C" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Sunday, May 13, 2001 11:47 PM
Subject: RE: How to tell when a user first log's in?


> Peter,
>
> Thanks, however I do have 1 more question for you. I do have the top frame
> saying request.getRemoteUser, but how do I automatically cause that frame
> to get refreshed when a user first log's in? On logout, I can do that
> because it accesses logout.jsp (just issue a JavaScript Refresh command.)
>
> Thanks!
>
> Jeremy - [EMAIL PROTECTED]
>
>
> At 10:23 AM 5/12/2001 -0600, you wrote:
> >Ad 1)   <%=request.getRemoteUser()%> (obviously you'll have  to reload
the top
> >frame)
> >Ad 2)   You will need to subclass DataSourceUerManager and add that
> >functionality
> > It would be possible to add that functionality on a page that
the
> > logged-in
> > User is guaranteeed to go to, bad that would be bad design
> >
> > --peter
> >
> >-----Original Message-----
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C
> >Sent: Saturday, May 12, 2001 7:44 PM
> >To: Orion-Interest
> >Subject: How to tell when a user first log's in?
> >
> >Is it possible to attach a hook, or some means of detemining when a user
> >first log's in? I use DataSourceUserManager...
> >
> >What I would like to do is two things,
> >
> >1. In my top frame, indicate who you are logged in as
> >2. Check the last time you have changed your password, and prompt for a
> >password change if it's past 3 months.
> >
> >Thanks!
> >
> >Jeremy - [EMAIL PROTECTED]
>





RE: How to tell when a user first log's in?

2001-05-12 Thread cybermaster

OK, there's a couple of different ways of doing this, dependent on which
program flow you wish to implement. A fairly generic way is something like
this (DHTML of course, doesn't have anything to do with the server-side of
things):






FrameNav

var mFrame = "main.htm";
var redirectFrame = location.search.substr(1).split("=");
if (redirectFrame[1]) {
mFrame = redirectFrame[1];
}

document.write('<frameset rows="200, *" frameborder="1" ><frame name="top"
src="top.htm" /><frame name="main" src=' + mFrame + ' /></frameset>');















foo.htm



This is foo!



if (top == self) {
window.location.replace("index.htm?url=" + location.pathname);
}








I assume this does what you were looking for (by the way, this may require
IE5.5 and NS6.0; to make it more generic you need to implement the split()
function yourself)

--Peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C
Sent: Sunday, May 13, 2001 3:47 PM
To: Orion-Interest
Subject: RE: How to tell when a user first log's in?

Peter,

Thanks, however I do have 1 more question for you. I do have the top frame
saying request.getRemoteUser, but how do I automatically cause that frame
to get refreshed when a user first log's in? On logout, I can do that
because it accesses logout.jsp (just issue a JavaScript Refresh command.)

Thanks!

Jeremy - [EMAIL PROTECTED]


At 10:23 AM 5/12/2001 -0600, you wrote:
>Ad 1)   <%=request.getRemoteUser()%> (obviously you'll have  to reload the
top
>frame)
>Ad 2)   You will need to subclass DataSourceUerManager and add that
>functionality
> It would be possible to add that functionality on a page that the
> logged-in
> User is guaranteeed to go to, bad that would be bad design
>
>     --peter
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C
>Sent: Saturday, May 12, 2001 7:44 PM
>To: Orion-Interest
>Subject: How to tell when a user first log's in?
>
>Is it possible to attach a hook, or some means of detemining when a user
>first log's in? I use DataSourceUserManager...
>
>What I would like to do is two things,
>
>1. In my top frame, indicate who you are logged in as
>2. Check the last time you have changed your password, and prompt for a
>password change if it's past 3 months.
>
>Thanks!
>
>Jeremy - [EMAIL PROTECTED]






RE: How to tell when a user first log's in?

2001-05-12 Thread Jeremy C

Peter,

Thanks, however I do have 1 more question for you. I do have the top frame 
saying request.getRemoteUser, but how do I automatically cause that frame 
to get refreshed when a user first log's in? On logout, I can do that 
because it accesses logout.jsp (just issue a JavaScript Refresh command.)

Thanks!

Jeremy - [EMAIL PROTECTED]


At 10:23 AM 5/12/2001 -0600, you wrote:
>Ad 1)   <%=request.getRemoteUser()%> (obviously you'll have  to reload the top
>frame)
>Ad 2)   You will need to subclass DataSourceUerManager and add that
>functionality
> It would be possible to add that functionality on a page that the 
> logged-in
> User is guaranteeed to go to, bad that would be bad design
>
> --peter
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C
>Sent: Saturday, May 12, 2001 7:44 PM
>To: Orion-Interest
>Subject: How to tell when a user first log's in?
>
>Is it possible to attach a hook, or some means of detemining when a user
>first log's in? I use DataSourceUserManager...
>
>What I would like to do is two things,
>
>1. In my top frame, indicate who you are logged in as
>2. Check the last time you have changed your password, and prompt for a
>password change if it's past 3 months.
>
>Thanks!
>
>Jeremy - [EMAIL PROTECTED]





RE: How to tell when a user first log's in?

2001-05-12 Thread cybermaster

Ad 1)   <%=request.getRemoteUser()%> (obviously you'll have  to reload the top
frame)
Ad 2)   You will need to subclass DataSourceUerManager and add that
functionality
It would be possible to add that functionality on a page that the logged-in
User is guaranteeed to go to, bad that would be bad design

--peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy C
Sent: Saturday, May 12, 2001 7:44 PM
To: Orion-Interest
Subject: How to tell when a user first log's in?

Is it possible to attach a hook, or some means of detemining when a user
first log's in? I use DataSourceUserManager...

What I would like to do is two things,

1. In my top frame, indicate who you are logged in as
2. Check the last time you have changed your password, and prompt for a
password change if it's past 3 months.

Thanks!

Jeremy - [EMAIL PROTECTED]






How to tell when a user first log's in?

2001-05-11 Thread Jeremy C

Is it possible to attach a hook, or some means of detemining when a user 
first log's in? I use DataSourceUserManager...

What I would like to do is two things,

1. In my top frame, indicate who you are logged in as
2. Check the last time you have changed your password, and prompt for a 
password change if it's past 3 months.

Thanks!

Jeremy - [EMAIL PROTECTED]