Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Deep Site Integration - Help!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Deep Site Integration - Help!

 Post Reply Post Reply
Author
PedroCury View Drop Down
Groupie
Groupie


Joined: 12 July 2008
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote PedroCury Quote  Post ReplyReply Direct Link To This Post Topic: Deep Site Integration - Help!
    Posted: 07 August 2008 at 11:52pm
Hi guys,

I´m pretty much confused. I think the kind of integration you ask in previous topics are kind of easy and the API´s have a different approach of what I´m looking for (I think!). At least, I couldn´t find any topics on what I want to do.

What I´m looking for is:

- Integrate the login bar or user name in my website header - This means that all my webpages will show a login form or will have the user name that is logged in (by reading his cookie).

- Keep this login session through all my pages... so depending on the user being logged or not, I can offer him different access to my webpage. This usually doesn´t work that much with sessions in my server, because the application pool is usually reseted many times. So, If the user is not logged in by session variables, the code should check the cookies and log him again.

These are the main goals right now and the most important ones.

In other words... I want to use the WWF login system in my whole website (and not the opposite).

Questions:
- Will any API help with that ? (I don´t believe)
- Can anyone give me some hint of which .ASP I should start to study to understand how the login process and cookies works ?


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: 08 August 2008 at 5:04pm
If you want to build your site around WWF then you can simply include the "common.asp" file within your pages.

You can then grab basic user info such as Author ID, Username and Group ID with this variables:

lngLoggedInUserID
strUsername
intGroupID

Also you will need to go into the includes/settings_inc.asp file (not sure on exact name) and uncomment the cookie path so that it is "/".


I have a tutorial on Member-Only Pages, it should give you a head start.



the API would be more for making the forum work with an existing site I beleive.
S2H.co.uk - WebWiz Mods and Skins

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


Joined: 12 July 2008
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote PedroCury Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2008 at 4:12am
Thanks Scotty32 !

I did some tests, hacked around and I think I did it. It now works... but I have a big concern:
Did you see how many includes the common.asp has ?  So, to only retrive login info from a user and make his session valid I´ll be adding tons of useless, forum specific codes.  And this will multiply for each of my website page, since I´ll show the quick login form or user name in the header.

It would be great to understand which includes I can use and keep this as simples as it can. Maybe creating another #include like common.asp, but that has only the basic login functions.

Can anyone from support give us some light ?
Back to Top
freebs View Drop Down
Groupie
Groupie


Joined: 04 March 2005
Location: South Africa
Status: Offline
Points: 53
Post Options Post Options   Thanks (0) Thanks(0)   Quote freebs Quote  Post ReplyReply Direct Link To This Post Posted: 03 November 2008 at 3:50pm
I have previously had this working on my old site, but now that I have upgraded to V9.5 it doesnt work anymore. I have added the  Include Common.asp and the Language files, and also followed the advice on Scotty32's site, but it just wont work.

I have tried on different browsers, deleted cookies, etc but still no luck.

Am I missing something.


Back to Top
 Post Reply Post Reply

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.