vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   login with custom vb4 page from different domain (https://vborg.vbsupport.ru/showthread.php?t=308899)

fxdigi-cash 02-26-2014 09:05 AM

login with custom vb4 page from different domain
 
Hi mates,

This may sound weird, but I was wondering if I can login with custom login page on a domain and then after the login the page redirects to another page... I will explain in different way as below:

custom login page on https://www.forexmegacashback.net that contains SSL and then whenever the user logged in, the page redirects to www.forexmegacashback.com

Is there a way how to do that??

Thanks

Lynne 02-26-2014 05:29 PM

Sure there is a way to do it if you code it right. Do I have the code... um, no. You may need to hire someone to do that if you can't code. (This is the programming discussions forum where users post their code and ask for help with it.)

fxdigi-cash 02-27-2014 10:09 AM

Thanks Lynne for the comment.

it is the same code used for the login at vb board. I just want it to be separated on a domain and then whenever a user login through that page, it redirects to the vb forum on the other domain.

I want to do this because I have an SSL on the main domain while the other doesn't have... and this is why I'm asking for such thing...

I will go around to check if I can do that myself though.

Thanks

cellarius 02-27-2014 01:43 PM

It's probably not trivial since you can't share cookies across domains.

fxdigi-cash 02-27-2014 03:12 PM

Thanks cellarius for the comments :)

I believe you are right, but how about if the webserver is the same?? wouldn't that work in this case??

I was thinking of using some plugin at vb org which is I believe VBSSO hack... if that plugin can be used to let a user login from domain.net and then get redirected to domain.com where the vb board is installed... I guess that should work as in theory no issue...

you may say database authentication with a user, as I recall the database on my server is connected to different domains I own because they all reside on the same web server...

what do you think?? any idea??

I think I will give it a shot and see if things go right...

:up:

cellarius 02-27-2014 03:23 PM

Quote:

Originally Posted by fxdigi-cash (Post 2484098)
I believe you are right, but how about if the webserver is the same?? wouldn't that work in this case??

No, it won't. Cookies do not reside on servers, but in browsers, and no modern browser allows cookie sharing across domains for security reasons.

I don't understand what you ask regarding database authentication. Of course the login happens against the database, but you need the cookie (or session) to keep logged in. As soon as you lose the cookie (or session), you'll need to log in again.

You'd need to find a way to authenticate your external pages against the domain the forum runs on.


All times are GMT. The time now is 01:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01172 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete