Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Web-application needs to send messages to registered users.


Message #1 by "Shailendra Abhyankar" <shailendra.abhyankar@n...> on Mon, 22 Apr 2002 06:41:09
I have one problem. 

My web-application needs to send messages to registered users 
(subscribers) of my site, if they are on-line on Internet. 

How can I detect whether registered user is on-line? 

How messages (advertisements/banners) can be send to the user in a 
separate window? 

Message #2 by "ASIM ABBASI" <asim_electro@h...> on Mon, 22 Apr 2002 08:26:15 -0400
Dear Shailendra

There is a thing called "Session"

In this thing, there is another thing called "SessionID"

Every user that connects to your web application has a unique SessionID. So
whenver user logon your system save his/her SessionID in DB and when they
logoff
set this entity in DB to 0 or OffLine.

Asim Abbasi
www.geocities.com/eingenuity




----- Original Message -----
From: "Shailendra Abhyankar" <shailendra.abhyankar@n...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Monday, April 22, 2002 6:41 AM
Subject: [asptoday_discuss] Web-application needs to send messages to
registered users.


> I have one problem.
>
> My web-application needs to send messages to registered users
> (subscribers) of my site, if they are on-line on Internet.
>
> How can I detect whether registered user is on-line?
>
> How messages (advertisements/banners) can be send to the user in a
> separate window?
>
>
>
Message #3 by "Shailendra Abhyankar" <shailendra.abhyankar@n...> on Tue, 23 Apr 2002 05:26:35
Thanks Asim for your reply.
But still you have not understood my problem.
I want to know registered user(of my site) whether he/she is not surfing 
my site. still I want to sent banners to him/her on the instance of 
browsing any site.

Shailendra

> Dear Shailendra

There is a thing called "Session"

In this thing, there is another thing called "SessionID"

Every user that connects to your web application has a unique SessionID. So
whenver user logon your system save his/her SessionID in DB and when they
logoff
set this entity in DB to 0 or OffLine.

Asim Abbasi
www.geocities.com/eingenuity




----- Original Message -----
From: "Shailendra Abhyankar" <shailendra.abhyankar@n...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Monday, April 22, 2002 6:41 AM
Subject: [asptoday_discuss] Web-application needs to send messages to
registered users.


> I have one problem.
>
> My web-application needs to send messages to registered users
> (subscribers) of my site, if they are on-line on Internet.
>
> How can I detect whether registered user is on-line?
>
> How messages (advertisements/banners) can be send to the user in a
> separate window?
>
>
>
Message #4 by "Joe Hughes" <JoeHughes@M...> on Mon, 29 Apr 2002 10:23:46 +0100
Hi Shailendra,

When a registered user logs into your site. Create a session variable called
"Registered"

e.g

'=== Users logs in here successfully ===

Session("ShowBanners") = 1

If Session("ShowBanners") = 1 then
    ShowAdBanners
End If

'==========================

If you want your site to automatically recognize registered users, you'll
need to create a cookie.

When they log into your site, create a cookie that Identifies them as a
registered user.

e.g

'==========================

Response.Cookies("RegisteredUser") = 1
Response.Cookies("RegisteredUser").Expires = "10/10/2010"

'Now, when someone arrives at your site, you can perform a check;

If Request.Cookies("RegisteredUser") = 1 then
    Session("ShowBanners") = 1
End If

'==========================

HTH

Joe Hughes

----- Original Message -----
From: "Shailendra Abhyankar" <shailendra.abhyankar@n...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Tuesday, April 23, 2002 5:26 AM
Subject: [asptoday_discuss] Re: Web-application needs to send messages to
registered users.


> Thanks Asim for your reply.
> But still you have not understood my problem.
> I want to know registered user(of my site) whether he/she is not surfing
> my site. still I want to sent banners to him/her on the instance of
> browsing any site.
>
> Shailendra
>
> > Dear Shailendra
>
> There is a thing called "Session"
>
> In this thing, there is another thing called "SessionID"
>
> Every user that connects to your web application has a unique SessionID.
So
> whenver user logon your system save his/her SessionID in DB and when they
> logoff
> set this entity in DB to 0 or OffLine.
>
> Asim Abbasi
> www.geocities.com/eingenuity
>
>
>
>
> ----- Original Message -----
> From: "Shailendra Abhyankar" <shailendra.abhyankar@n...>
> To: "ASPToday Discuss" <asptoday_discuss@p...>
> Sent: Monday, April 22, 2002 6:41 AM
> Subject: [asptoday_discuss] Web-application needs to send messages to
> registered users.
>
>
> > I have one problem.
> >
> > My web-application needs to send messages to registered users
> > (subscribers) of my site, if they are on-line on Internet.
> >
> > How can I detect whether registered user is on-line?
> >
> > How messages (advertisements/banners) can be send to the user in a
> > separate window?
> >
> >
> >
>


  Return to Index