DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Nov 2008
    Posts
    13

    Smile how to get the user id/user name

    Hi All,

    I am developing a web analytic application for a site.Now i want to get the user name/user id of the registered web site.Can any one provide some examples on this.Thanks in advance.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Not without knowing how the user name/user id of the registered web site is stored, and where it is stored.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Nov 2008
    Posts
    13
    Hi Hack,
    Thanks for your reply.

    The user name is stored in the registered application's data base. per example,the site abc.com
    is registered to my application Mysite.com. .All the information related to the site abc.com is stored in database of the abc.com application.Now i want to track the user who have logged in to abc.com from my application. Pls guide me in this regard.

    Thanks

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Is this your website and your database (if so, what kind of database is it?)?

    Do you know SQL?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Nov 2008
    Posts
    13
    Hi Hack

    No user name/id is not in my data base.It is other application's data base.

    I am using Mysql to store the tracked data of the application.

    Thanks

  6. #6
    Join Date
    Nov 2008
    Posts
    13
    Hi Hack,

    Here i want to get the information of remote user logged into the site.
    I am using the request.getRemoteUser().It is returning null.
    But i want the username;

    Thanks

  7. #7
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Typically, web databases will not allow outsiders to run querys against them without having permissions do to so.

    Are the owners of this database aware that you need to run queries against it?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  8. #8
    Join Date
    Nov 2008
    Posts
    13
    Hi Hack,

    yes it is not possible to acess data base. But can i get the user login information of the registered site from my application using

    request.getRemoteUser()
    Thanks

  9. #9
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    See the post by paramosyermos in this link.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  10. #10
    Join Date
    Nov 2008
    Posts
    13
    Hi All,

    How to get the name of the user logged into the remote application.
    request.getremoteUser() returning null.

    Any help is appreciated.
    Thanks

  11. #11
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,649
    Did you look at paramosyermos post?

    That is the best example I could find.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Senior User Experience Researcher San Jose
    By Branta in forum Careers
    Replies: 0
    Last Post: 02-13-2006, 07:45 PM
  2. Hiding user controls vs dynamic creation
    By Senkwe in forum ASP.NET
    Replies: 2
    Last Post: 06-11-2002, 06:54 AM
  3. Replies: 0
    Last Post: 07-20-2001, 06:02 AM
  4. Can't Receive Outside E-mail to One User
    By Scott Charles Arnson in forum Enterprise
    Replies: 1
    Last Post: 09-26-2000, 11:10 AM
  5. Replies: 0
    Last Post: 05-15-2000, 11:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links