FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to bypass the loggin page (I have good reasons to do so!)  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  How to bypass the loggin page (I have good reasons to do so!) [message #4499] Sun, 28 July 2002 22:06 Go to next message
vidaubannais is currently offline  vidaubannais   Germany
Messages: 23
Registered: July 2002
Karma: 0
Junior Member
Hi guys,

Members already have to loggin in order to be granted access to my site. The point is that now I would like to implement FUD on this existing site, but would like to get rid of it forum's loggin functionality, the reason being that I want to prevent the user to have to loggin twice Confused
As I am not a chanpion in PHP, I don't realy know how to handle the question.
For this reason I was thinking about dumping my already existing users' information database (containing their name, e-mail address, MD5 encripted password etc ... ) right into the FUD FUDXXX_users table to avoid data replication & minimize the modifications in FUD code (if any) - But once this is done and that the information is centralized in FUD table and that this information is accessible by both pattrs (my existing website business logic that I had to modify to fetch data in FUD database, and FUD itself), how could I prevent FUD from prompting for loggin a user that is obviously already logged-in (through my own web site's loggin form)?

Is all of this clear for everyone or shall I repeat for the guys at the last row Rolling Eyes ?

Thanks in advance!

[Updated on: Sun, 28 July 2002 22:06]

Report message to a moderator

Re: How to bypass the loggin page (I have good reasons to do so!) [message #4502 is a reply to message #4499] Sun, 28 July 2002 23:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
To track users FUDforum generally uses cookies. Each user gets a cookie which contains a 'session id' FUDforum does a look up inside the "fud21_ses" table using that sessions id, getting the actual user id, which is then used to get the user's information.

In order to accomplish this you will 1st need to use the global control panel to modify the cookie path, so that the FUDforum cookie can be used across the entire site. This is done by changing the value of that option to '/'.
Then you need to open cookies.inc.t, which is the source code of the FUDforum cookie code and figure out how it works Smile


FUDforum Core Developer
icon14.gif  Re: How to bypass the loggin page (I have good reasons to do so!) [message #4504 is a reply to message #4502] Mon, 29 July 2002 07:46 Go to previous messageGo to next message
vidaubannais is currently offline  vidaubannais   Germany
Messages: 23
Registered: July 2002
Karma: 0
Junior Member
I'll look into this
Thanks for this fast answer Very Happy
Re: How to bypass the loggin page (I have good reasons to do so!) [message #8202 is a reply to message #4502] Thu, 16 January 2003 20:25 Go to previous messageGo to next message
vidaubannais is currently offline  vidaubannais   Germany
Messages: 23
Registered: July 2002
Karma: 0
Junior Member
Hi,

I am still working on this Confused

My web application has its own loggon system.
Once the user loggin, and him willing to access the "forum part" of the site (powered by FUDforum), I don't want the user to have to loggon again.
I had a look at the following table: 'fudXXses' and it looks like this:-

| id | ses_id (prim_key) | sys_id (prim_key) | action | forum_id | time_sec | data |

I was thinking about doing the following:-
When the user loggin to my site (note the FUD loggin mechanim), I have a session ID - I was thinking about accessing FUDs 'fudXXses' table and create an entry for this user "artificially" (via JDBC) -
My pbms/questions are the following:

A) Would this be possible?
B) What exactly are 'id', 'ses_id', 'sys_id', 'user_id'?
C) Is it OK to leave the other entries empty at this stage (I presume they are going to be populated later on while the user interact with the forum)
D) How does FUDforum stores the information "the user uses cookies <or> the user uses URL rewriting"?
E) Has sanyone a better idea to implement what I try to do?

Many thanks to all for your precious collaboration
Re: How to bypass the loggin page (I have good reasons to do so!) [message #8217 is a reply to message #8202] Fri, 17 January 2003 14:19 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It is possible, I've done it before for commercial clients.

Id is the record id.
user_id is the user id.
ses_id is the session id.
sys_id is an internal data used to auth the URL session.

It may be viable to leave ses_id & sys_id blank, depending on how your system works.

Both, but prefernce is given to cookies.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Forum pruning question
Next Topic: Where to set COPPA FAX number or address?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 19:45:54 GMT 2024

Total time taken to generate the page: 0.02176 seconds