Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mixed Integrated Login & .NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mixed Integrated Login & .NET

 Post Reply Post Reply Page  12>
Author
kanun View Drop Down
Newbie
Newbie


Joined: 27 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanun Quote  Post ReplyReply Direct Link To This Post Topic: Mixed Integrated Login & .NET
    Posted: 27 May 2006 at 2:26pm
Hi everyone
I'm new to WWF but it's seems great & I'm realy excited to use it.
I want to integrate site and was wondering if anyone woul dbe able to help..

I'm running Rainbow portal (C#, ASP.NET)
Basically I have 2 user types:
- Public users, who will register through WWF. They will have no corresponding login in rainbow, ie they'll be 'pure' forum users.
- Special users, who will be manually given a Rainbow login (limited number) but will also have access to forums.

What I'd really like is for the special users to be automatically logged in to WWF when they are logged in to Rainbow.
I've read the info regarding setting Session("USER") & Session("PASSWORD") and tried doing this in Rainbow's login module - but I'm under the impression that these only work in ASP/VB.

Could anyone steer me in the right direction regarding what the Rainbow login needs to set for WWF to log them in?
Will having both auto-login and (rainbow setting wwf's cookie for special users) and manual login (public users entering their login details) cause problems, or should I be able to do it?

Having WWF auto-create the users not already in it's usertable would be great, but I am willing to create the auto-login users manually if there's no other way.

Thanks a bunch, I hope someone can help!
John.
Back to Top
kanun View Drop Down
Newbie
Newbie


Joined: 27 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanun Quote  Post ReplyReply Direct Link To This Post Posted: 28 May 2006 at 4:11pm
Just an update on this post:
What I really need to know is how to write the WWF cookie that keeps a user logged to the forums, and I need to be able to set that cookie in a C# .net application
This way, I'll make sure all of my rainbow users have a corresponding WWF account, and when they log into rainbow their WWF login cookie is automatically written.
This seems to me to be the best way of doing things..
Would anyone be able to help me with regards the cookie setting?

Thanks a bunch for reading.. I'm not a seasoned web developer but this doesn't seem too difficult to pull off..

Cheers,
John.
Back to Top
garyn View Drop Down
Newbie
Newbie


Joined: 08 April 2006
Location: Canada
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyn Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2006 at 11:51pm

Is the forum on the same webpage (domain/subdomain) as the portal or is the forum in its own subdomain or domain?

Back to Top
kanun View Drop Down
Newbie
Newbie


Joined: 27 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanun Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2006 at 8:06am
It's on the same domain as my portal site - just in a sub-folder (not an actual virtual directory).

So just to clarify, my site would be www.site.com
and the forums would be at www.site.com/forum
where "forum" is an actual subfolder in the root dir.

Back to Top
garyn View Drop Down
Newbie
Newbie


Joined: 08 April 2006
Location: Canada
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote garyn Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2006 at 5:06pm
Ok, I see.  The user has to be created in WWF under the same user name as portal.  Is this already the case?  When they register under the portal is there a login created in the forum?  If not, you will also need to do that as well.  You will have to consider the format that the user password is stored in the portal if you want to create the users in the forum after they are created in the portal (ie. button click to add to forum).
 
In my site, I have the users added to the forum when they register for the main site.  Then I have a session variable created and added to the forum link so that when clicked, the forum see's who they are and if matched in the forum, allows them access.  Will your users only be gaining access to your forum from the portal or also from an external link? 
 
Let me know the answer to these and I may be able to help you accordingly.
 
 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2006 at 6:52pm
version 8 has a Site Intergration feature, this allows you to use WWF on exisiting forums

the problem comes if you've already used the forum then it may course problems

theres a file "functions/functions_member_API.asp", all you do is set session variables from your excisting site (asp.net site)

    Session("USER") = Member_Username
    Session("PASSWORD") = Member_Password


you may need to change parts of the site, config file or functions_member_api.asp file for it to work off the Member API

now, that may all be useless if ASP and ASP.NET are not compatible
i havent used ASP.NET, but am sure ive heard on these forums that ASP and ASP.NET sessions are not compatible, so you may not be able  to do what you wish to do, you'll have to research it
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
kanun View Drop Down
Newbie
Newbie


Joined: 27 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanun Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2006 at 7:06pm
Thanks for your replies guys.

I looked into the functions_member_API.asp method and couldn't figure out how to implement it - as you said scotty_32, I suspect that asp & asp.net sessions are not compatible.

To get around this, I'm going to have duplicate entries in the user tables, so that every user in the portal's user table will have a corresponding entry in WWF's tblAuthor. When a portal registration is created, the user is directed to wwf's register.asp with the username & password etc passed as parameters. So basically they have the wwf registration page with all the values filled in, so the user just has to click "Register".
Either way, the portal logins are all going to be pre-created by me - no 'public' users are going to go through this process.
Also, having it done this way means that I won't get into password encryption mess as wwf will still be doing it's own encryption on the password.
In essence I'll be having a similar setup to yours, gary - when they log in to the portal, the users will automatically be logged in to WWF when they browse to the forum page.
I hadn't considered the issue of following a specific link vs using an external link.
Ideally, the session variable is created in the portal login process, so whether they go on the forums or not, it is still created.
I admit that I am a little less sure on the finer points of this process... when you say session variable, does this actually mean a cookie that expires at the end of your session, or is it not even stored as a cookie? (just a value in memory?)

Also, I will still be having a lot of users (the majority in fact) who will be pure wwf users, so all the usual wwf login/register stuff has to remain in place... plus if a portal user wants to use just the forums, then it would be convenient for them to be able to go straight there & use the wwf login rather than having to go to the portal site first.

Anyway, thanks for your interest guys - I hope that all made sense!

Cheers,
John


Edited by kanun - 01 June 2006 at 8:22am
Back to Top
kanun View Drop Down
Newbie
Newbie


Joined: 27 May 2006
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanun Quote  Post ReplyReply Direct Link To This Post Posted: 08 June 2006 at 8:28am
Just an update
It turns out I was making everything a lot more complicated than I really needed to.
I just turned on the member API which is really what I wanted anyway - there wsas no point in trying to change the whole thing myself. It took a bit of work figuring out how to get the username and password across (I found that whole session("user") business a bit misleading, but I figured out how to get it done and it seems woek great now.

Would there be any problem is using both the member API and the regular WWF register/login system side-by-side?
All the rainbow users that would be automatically logged in to WWF will be created by me - the only public registration will be directly with the forums.

Cheers,
John.
Back to Top
 Post Reply Post Reply Page  12>

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.