Print Page | Close Window

Mixed Integrated Login & .NET

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20059
Printed Date: 28 March 2026 at 7:50pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Mixed Integrated Login & .NET
Posted By: kanun
Subject: Mixed Integrated Login & .NET
Date 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.



Replies:
Posted By: kanun
Date 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.


Posted By: garyn
Date 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?



Posted By: kanun
Date 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.



Posted By: garyn
Date 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.
 
 


Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: kanun
Date 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


Posted By: kanun
Date 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.


Posted By: Scotty32
Date Posted: 08 June 2006 at 10:06am
thats what i was on about - the Member API part, sorry if i didnt explain it very well.

as for using WWF registration page with the member API, i dont think it would work, i havent look proberly into the member api, so i dont know exactly how it works, so it might course conflicts

your best off posting in the WebWiz Forum Version 8 Support Forum and asking borg, i advice you to explain your situation as you may get away with it, since your api members are created by you, so you could check usernames before hand.

i was wondering, do your ASP and ASP.Net Sessions work ok together?


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: kanun
Date Posted: 08 June 2006 at 6:41pm
Originally posted by Scotty_32 Scotty_32 wrote:

thats what i was on about - the Member API part, sorry if i didnt explain it very well.

That's fine scotty, I knew what you meant - but for some reason I had convinced myself that I needed to do it differently..
Quote
as for using WWF registration page with the member API, i dont think it would work, i havent look proberly into the member api, so i dont know exactly how it works, so it might course conflicts
your best off posting in the WebWiz Forum Version 8 Support Forum and asking borg, i advice you to explain your situation as you may get away with it, since your api members are created by you, so you could check usernames before hand.

Yeah, I think it should work - but I'll do just that and see what reply I get.
Quote
i was wondering, do your ASP and ASP.Net Sessions work ok together?

Well, to be honest I couldn't really get things working using that session stuff, so what I did was I created two cookies in my Rainbow login using:
HttpCookie mycookie = HttpContext.Current.Response.Cookies["USER"];
mycookie.Value = <username>;
mycookie.Path = "/";

(and another for the password)

Then in WWF, I set the following in function_member_api.asp:
strUsername = Request.Cookies("USER")

To be honest, I don't really know if it's the best way of doing it - but the whole session thing didn't work and this did!
What do you reckon?

Cheers,
John.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net