Results 1 to 9 of 9

Thread: session problem

  1. #1
    just2011 is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    16

    Default session problem

    Hi,

    I'm new to sugarCRM and downloaded and installed it in my server (Running APACHE MySQL). its runnig fine with the changes i did. and there another thing i have to chenge but dont have any idea..so please help me on this.

    I need to restrict a user logging from two machines at the same time..if he does so the the session on the first machine will automatically expire.

    Please assist me on how to do this.

    Thanks

  2. #2
    just2011 is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    16

    Default Re: session problem

    Hello..

    Anybody know whether this can be done..?


  3. #3
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: session problem

    Hi

    You can do it by the Apache config.

    tips --> http://forums.alwayswebhosting.com/s...ead.php?p=5863
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  4. #4
    just2011 is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    16

    Default Re: session problem

    Thanks again Ruchida for the helping hand..!!!

    But i think the link you have given is talking about blocking the IP...

    Anyways i 'll go through it..

    Just

  5. #5
    just2011 is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    16

    Default Re: session problem

    Hi,

    I went through the link ruchida gave but its a blocking an IP.what i want to do is stop same person logging from two different PC's at the same time.

    Anybody got any idead....!!!!

    Thanks
    Just

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: session problem

    Quote Originally Posted by just2011
    Hi,

    I went through the link ruchida gave but its a blocking an IP.what i want to do is stop same person logging from two different PC's at the same time.

    Anybody got any idead....!!!!

    Thanks
    Just
    I might be wrong here, but the session handles logins meaning that the server really has no control, unless the two servers have the same domain name guess, so if you want to log out a person based on being logged into another machine you would have to have the two machines compare users are then disable users based on login times. However this method would also keep them from flipping between machines and they would have to wait a predetirmined length of time to relog into a machine.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    just2011 is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    16

    Default Re: session problem

    OK,

    Thanks for all the replies.What i wanted to do was allow only one user to log using one username at a given time.i found a solution to write a unique key to a temp table and session var compare it everytime a new page is loded.

    now i need to include the file containing the code for this all the files cos everytime a new page is loaded this script needs to run..

    1 Ques : how do i make the DB connection inside the new file i made.i tried including some files but it says "Not a valid entry point"

    2Ques : is there a easy way to run this script before any page loaded.or do i have to include it manually to each and every page?

    Please help me on this...

    Thanks
    Just

  8. #8
    just2011 is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    16

    Default Re: session problem

    Hello ANYBODY?

  9. #9
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: session problem

    Quote Originally Posted by just2011
    OK,

    Thanks for all the replies.What i wanted to do was allow only one user to log using one username at a given time.i found a solution to write a unique key to a temp table and session var compare it everytime a new page is loded.

    now i need to include the file containing the code for this all the files cos everytime a new page is loaded this script needs to run..

    1 Ques : how do i make the DB connection inside the new file i made.i tried including some files but it says "Not a valid entry point"

    2Ques : is there a easy way to run this script before any page loaded.or do i have to include it manually to each and every page?

    Please help me on this...

    Thanks
    Just
    1) you would have to load a module class and use it db connection like $focus->db->query("")

    2) index.php is loaded every page
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •