Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Integrate w/ other user database app/tables
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Integrate w/ other user database app/tables

 Post Reply Post Reply Page  123>
Author
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Topic: Integrate w/ other user database app/tables
    Posted: 03 April 2012 at 8:27pm

I am very much interested in integrating the forum database with another user database I have. Actually, I'm only using ONE database, but different sets of tables for two different apps, specifically the forum app, and a customer/userlevel app. I would very much like to keep the integrity of both sets of data intact, so when there is a major WebWiz upgrade, the forum tables can easily be upgraded without much concern of breaking anything on the other end. I realize this is quite a feat, and would like to get input/advice regarding this endeavor. Especially from someone who has already done this. The goal is to have one login for the forum, as well as other aspects of the site (as per user permissions defined in the other tables).

What unique identifier in the "AUTHOR" table was used, Author_ID?

What method(s) did you use to transfer the username/email/password to the other tables so the logins always remain the same for both applications?

Many thanks,

GhOs+

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (1) Thanks(1)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2012 at 9:14pm
For integration with an existing database you should look at the pages below:-

Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2012 at 2:50am
StarStarStarStar  wowsers!!!   StarStarStarStar
Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Posted: 03 February 2013 at 9:18pm
I know it's been a while since i looked at implementing this. It looks rather simple, but I just can't get it to work. I'm obviously missing something and am hoping someone can help -
functions_member_API.asp:
Const blnMemberAPI = True
 
Created the following sessions:
Session("USER")
Session("PASSWORD")
Session("EMAIL")
 
I confirmed the Session("USER") value does not exist as a username in the forum tables. It should automatically create a username with this value when navigating to a forum page, correct? Nothing happens - the forum page remains as usual and I do not get "logged in"
 
 
 
Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Posted: 03 February 2013 at 9:50pm
Just in case it's needed, I assigned the directory of the membership system I'm using to the same application pool as the forum, and restarted IIS. I also called up the Session.SessionID and noticed that it increments by one when I move from the membership page to a forum page. Could this be related to my problem somehow?
Back to Top
IanSmithISA View Drop Down
Groupie
Groupie


Joined: 21 October 2010
Location: Worcester
Status: Offline
Points: 127
Post Options Post Options   Thanks (1) Thanks(1)   Quote IanSmithISA Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2013 at 6:29am
Good morning,

I am not at all sure that I am right about this but....

Many pages don't need you to be logged in to view them, so maybe setting these Session variables won't force a login. 

So maybe you need to call the login_user.asp page to get a login performed using these Session variables and then to go where you want to, you can set the request parameter "returnURL" with the page's URL. There is a bit processing of this on line 182

I am not at all sure that I know what I am talking about though.

Bye

Ian
Why does anyone need more than an 80x25 character only VDU?
Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2013 at 6:36am
Thanks for your reply. Not working, though. By using response.write, I verified that the Session("USER") is populated in the page before I go to the forum, and I tried doing a response.write of Session("USER") in a forum page, but it nothing shows up! Apparently the forum isn't picking up any of the session variables...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2013 at 8:36am
For ASP sessions to work in Classic ASP they require that you use both a single application pool and for security reasons the same website.

ASP sessions also rely on a session cookie to run, so if you change domain, even if it is the same website but using a sub domain, a new ASP session would be created and you would loose your old session variables.

For session variables to work you need to:-

1. Use a single domain (eg. www.example.com and www.example.com/forum)
2. Use a single application pool for the website
Back to Top
 Post Reply Post Reply Page  123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.