| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Simple integrated login; Not working idea, just a concept | |
|---|---|
| Tweet Topic Started: Oct 31 2005, 04:32 PM (639 Views) | |
| Dennis | Oct 31 2005, 04:32 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hey, I was thinking of ways to integrate the site and forum login, and came up with an idea. I was wondering if if could be possible to edit the cookie path, so that the cookie for forums.site.com would also work on site.com using javascript. Or, alternatively, to use an external PHP script, perhaps referenced in an iframe, or even run when another PHP page is loaded. I think that it is not possible to edit a cookie path, correct? So, we could load the cookie content into the page's memory, delete the existing cookie, then add a new cookie with the same name containing the same content, just with a wider path. This could then allow for the cookie to be used anywhere on the domain, allowing for an integrated site/forum login. Alternatively, a script could be added to just duplicate a cookie's content. Now that I think about it, however, I'm not sure that it would work, becuase I can't access the cookie at all unless the domain and path are correct, right? I may be able to use javascript to accomplish this, though. Give me some feedback, whether or not this could work, etc. |
![]() |
|
| James | Nov 9 2005, 11:16 AM Post #2 |
|
Live to Dream
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hey Dennis, I brought up a topic here: http://support.invisionfree.com/index.php?showtopic=192391 about relatively the same area. Since you can send headers through using XMLHttpRequest, you could "post" the cookie to your server, then somehow request a page on your forum sending the cookie with it, and if it returns a certain "login" feature, then log the person in on your site, otherwise they're a guest. It all hinges on whether you can send the cookie out and back in a readable header format, but if you can work that bit out.. great! |
![]() |
|
| Dennis | Nov 9 2005, 04:46 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Can one set a cookie using XMLHttpRequest? I've never really used AJAX. |
![]() |
|
| James | Nov 9 2005, 08:27 PM Post #4 |
|
Live to Dream
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
http://support.microsoft.com/default.aspx?...b;EN-US;q234486 |
![]() |
|
| solinent | Nov 12 2005, 12:49 AM Post #5 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
I've seen this so many times. I think you could do it like you said (calling php scripts with javascript) An easy way to do this, is get phpbb, or IPB, because usually if you have a website, you have more customisable options when you can edit the php code. Couldn't invisionfree set up a part of your board that's pass-protected txt file, and it contains all the info you need? You'd just have to get it with a php script (file() or the like) |
![]() |
|
| Dennis | Nov 12 2005, 12:17 PM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well, from what Seth has told me, IF will have an SDK when IF2 comes out. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
10:29 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




10:29 AM Jul 11