April 1, 2008

Google GDay

You will find other articles relevant to this document in these sections:
Richard Lee @ 10:53 am

Whilst on google today I stumbled across Google GDay “predict content one day in advance” (http://www.google.com.au/intl/en/gday/index.html)  funny i thought  imagine how handy that would be for footy tipping or picking lotto numbers lol. Anyway for those of you haven’t figured it out already, yes its an April fools joke :P but I wouldn’t be too surprised if we do see something like this in the future :P

February 7, 2008

Flint Interactive

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 1:52 pm

Cameron Manderson is working for Flint Interactive, a young, independent, Melbourne-based interactive collective, offering fresh and innovative end-to-end web services. Draw together by a common vision to create awesome, inspiring and progressive online projects, their work and the way they go about it reflects their passion. more…

December 13, 2007

PHP Sharing sessions between multiple domains

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 8:46 am

Hi All,

Some time ago I posted an article on what it would involve to share a session across different domains. I have since then had a lot of interest in having a look at a means of implementing the solution. It has been quite some time since I looked at the original solution (some 2 years ago) and I am posting the code free for all to use and to hopefully aid others in working on their solution for their projects.

Implementation

I use a majority of the time a MVC approach to my websites, namely following an Apache Struts implementation of which I hope to write more about in the next year. For this I am diverting all my requests through a single gateway that has configurations mapping to actions. As part of the framework I can modify the request processor or the boot process to handle session logic centrally for all requests.

The solution I was talking about would use one central server as an ‘issuing’ server, and then all of the sub-sites (or other sites wishing to also share the session from across different domains) would request the session ID from this issuing server by redirecting to it instead of starting their own servers. The issuing server would then return the user to the original sub-site with a KEY to use to locate the session ID it should use, then the sub-sites would resume the session.

For this to work properly you would have to first centralise the database sessions, into a database is how my solution works (using ADODB at the time, these days I prefer PDO, but would be easy to rewrite). You would need 2 main components, one being the session handlers that operate on the sub-sites and the issuing script that operates on the issuing server.

In this example I assume you have a domain sub-site called ‘mysubsitedomain.com’ and will use ‘mycentraldomain.com’ as the issuing server.

You need two files:

- DistributedSessionWrapper.php
- issueSessionId.php

Get the ZIP file here: http://cameronmanderson.clientstage.com.au/multiple-domain-sessions/multiple-session-example_v_1_0.zip

Add to the sub-site ‘mysubsitedomain.com’:

// Get a connection to the database
$adodb = & ADONewConnection(’mysql’);
$connection = $adodb->PConnect($_db_host, $_db_user, $_db_password, $_db_name);
if(!$connection) trigger_error(’Database not available’, E_USER_ERROR);

// Pass it to the session wrapper
$session =& DistributedSessionWrapper::getInstance();
$session->sessionInit($adodb, ‘http://www.mycentraldomain.com/issueSessionId.php‘);

And then on the central domain ‘mycentraldomain.com’ setup the script issueSessionId.php

When a member hits mysubsitedomain.com and has the distributed session wrapper running it will redirect the request through to the issueSessionId script, which will then bounce the user back to mysubsitedomain.com with a lookup key to find the session ID that both scripts will agree to use [on different domains, but both will have a cookie configured with the same session ID].
Downfalls

There are some downfalls or challenges that I thought necessary to be expanded on my suggested code. Namely it is the requirement of expiring the session or regenerating a session ID and having it spawn across all the other servers. Theoretically we could use the current session with some flags identifying that the session has now expired or moved to another identifier. This would therefore require the sub-sites session handler to identify when they are using an expired session and change the session ID that it is using (or re-request a new one). There may be some downfalls with how we can run sessions, first looking at one session and then looking at another session.. but this may be done with a new request.

Also the redirect assumes that you can forward through the request to be resumed on the other servers. The problem with this is that it is currently passing through the request URI - which will only contain GET variables. This is a limitation I guess needs a bit of a work around, and may involve some additional communication between the scripts (or packaging of the post request to be resumed, maybe serialised temporarily?).

Also I wrote this script almost 2 years ago, so I probably should revisit it to work on the logic more. Maybe looking at the additional identification of no cookie support etc would help.
Hopefully it is useful for someone to look at and be inspired into their own solution. Please email me at cameronmanders[-at-]gmail.com with your solution.
Cheers
Cameron

November 13, 2007

MIGS for ZenCart (port of cc_via_migs)

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 8:51 am

I have had a few contacts from people requesting the cc_via_migs for osCommerce to be ported to ZenCart. I have attached the file here for people to use. Please read the header file of cc_via_migs.php, and any additional modifications needed for the complete ZenCart portage please email me at cameronmanderson[at]gmail.com.

This should provide support of ANZ eGate (merchant and bank), CommBank (commonwealth) and Bendigo Bank to ZenCart.

I will upload to the contributions section of http://www.zen-cart.com/

Download Here
Direct Link: http://www.melbournechapter.net/public/20071113-0838-zen-cc_via_migs-ctm-v1_0.zip

Thanks
Cameron

April 2, 2007

T2Tea got IMA 2006 Top 10 Site of the year

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 10:11 am

We are very happy to announce that we have received the 2006 Top 10 Site of the year status for our t2tea site. My company Radiant Logic handled all the server-side technology including the ability to process e-commerce and manage all the content using custom applications developed inhouse, and allowed the creative agency Rich Creative to go wild and create an engaging experience.

March 8, 2007

Super zoomed Google Maps

You will find other articles relevant to this document in these sections:
Richard Lee @ 9:19 am

Seems you can zoom further on Google. Mind you i’ve tried a number of locations around Melbourne and it seems Google has very limited zoom…

March 1, 2007

Starwards movie animation VIA Telnet

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 9:10 am

An old gem but thought it was worth a post: connect telnet to towel.blinkenlights.nl

Google Maps integrated into search results

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 8:51 am

A colleague found a nice little map integrated into a google search result today, looking for ‘design a cake’ found a company (3rd on the list) with an icon to display their location in Google Maps - quite nice. So what is involved for us to integrate this into our websites? Some discussion on the topic was on this website and the howto is on this website here. Very nifty!

Gatineau - Microsoft analytics

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 8:44 am

Stumbled across this today, has anyone had a play with it? http://gatineau.adcenter.microsoft.com/Gatineau/ Sounds like Microsoft looking at what is going on and trying to mimic the movement (again).

February 25, 2007

Sustainable web development

You will find other articles relevant to this document in these sections:
Cameron Manderson @ 11:12 am

From day dot for our new company Radiant Logic PTY LTD we have been purchasing 100% sustainable premium green power. Climate change is something that greatly affects everyone and making the switch is a very important step for companies to follow, and us as a web application development company primarily operating on computers and servers need no exception! I was very glad to hear during the week that the current hosting company that we use for VWS in Australia has gone 100% green also, meaning that our customers are helping reduce carbon emmissions. This area is something that we will be working on a lot this year forming a greening community with a few different companies to talk about changes that companies can make to reduce their carbon footprint. I think it is important for staff to raise the issue with the directors of their company and start making this change.

Next Page »