[summary of the invention]
In view of above-mentioned condition, it is necessary to provide a kind of and use the convenient method realizing page access.
A kind of method realizing page access, comprises the following steps:
Receive customer attribute information and accessing page request;
The page address to be visited preset according to the acquisition of described customer attribute information is reflected with personal page address
Penetrate relation;
Obtain the page address to be visited of user's request, obtain according to described mapping relations and ask with described user
Personal page address corresponding to page address to be visited.
Further, the storage corresponding with customer attribute information of described mapping relations, and described mapping relations are corresponding
Different priority;The described page address to be visited preset that obtains according to customer attribute information is with personalized
The step of the mapping relations of page address is:
Search corresponding mapping relations according to customer attribute information, obtain the described mapping relations that priority is the highest.
Further, in the described page address to be visited preset that obtains according to described customer attribute information with individual
Before the step of the mapping relations of property page address, also include:
Judge whether described mapping relations, the most then enter and described obtain according to described customer attribute information
Take the step of default page address to be visited and the mapping relations of personal page address, otherwise, obtain pre-
If public page address as personal page address.
Further, on the described page to be visited ground obtaining according to described mapping relations and asking with described user
After the step of the personal page address that location is corresponding, also include:
Judge whether the page corresponding to described personal page address exists, if it is not, then obtain default public
Page address is as personal page address.
Additionally, also provide for a kind of system realizing page access, including:
Receiver module, is used for receiving customer attribute information and accessing page request;
Mapping relations acquisition module, for obtaining the page to be visited ground preset according to described customer attribute information
Location and the mapping relations of personal page address;
Page address acquisition module, for obtaining the page address to be visited of user's request, according to described mapping
The personal page address that Relation acquisition is corresponding with the page address to be visited that described user asks.
Further, the storage corresponding with customer attribute information of described mapping relations, and described mapping relations are corresponding
Different priority;Described mapping relations acquisition module is for searching corresponding reflecting according to customer attribute information
Penetrate relation, obtain the described mapping relations that priority is the highest.
Further, also include: the first judge module, be used for judging whether described mapping relations, if
It is then to notify that described mapping relations acquisition module obtains the page to be visited preset according to described customer attribute information
Address, face and the mapping relations of personal page address, otherwise, notify that described page address acquisition module obtains
The public page address preset is as personal page address.
Further, also include: the second judge module, for judging that described personal page address is corresponding
Whether the page exists, if it is not, then notify that described page address acquisition module obtains the public page address preset
As personal page address.
The above-mentioned method and system realizing page access, first receive customer attribute information and accessing page request,
And obtain the mapping relations of page address to be visited and the personal page address preset, then can be according to described
Mapping relations and described page address to be visited obtain corresponding personal page address.User is at accession page
Time, it is not necessary to input different page addresses, but automatically obtain the page of personalization according to its attribute information
Address, this avoid user needs to remember different page addresses.Therefore, during user to access pages more
Convenient.
[detailed description of the invention]
As it is shown in figure 1, in one embodiment, it is achieved the method for page access comprises the following steps:
Step S110, receives customer attribute information and accessing page request.
Before accession page, user can register in advance on website, and after having registered, server obtains
Take customer attribute information, customer attribute information and checking information are stored in data base.Customer attribute information
Age, authority, affiliated tissue, sex and role etc. including user.
Concrete, user can be by the login interface login service device of browser, and browser is according to user operation
Obtaining the accessing page request of user, and accessing page request is sent to server, server receives this page
Face access request, and from data base, the customer attribute information of correspondence is got according to ID.
Step S120, obtains the page address to be visited and personal page ground preset according to customer attribute information
The mapping relations of location.
Concrete, in one embodiment, page address to be visited and personal page address can be pre-set
Mapping relations, these mapping relations corresponding with customer attribute information storage, i.e. the different types of attribute of user can
Corresponding different mapping relations, and in different mapping relations, page address to be visited also can be corresponding different
Personal page address.Such as, the mapping relations that age attribute is corresponding are as shown in table 1 below:
Table 1
Additionally, the attribute type of mapping relations and user can be relation one to one, it is also possible to be multiple
The corresponding mapping relations of the combinations of attributes of kind.Such as, mapping relations and role and age attribute
Combination correspondence, the corresponding relation of page address the most to be visited and personal page address and age and role two kinds
Customer attribute information is relevant.Concrete mapping relations are as shown in table 2 below:
Table 2
It is appreciated that mapping relations can also be corresponding with other two kinds of combinations of attributes, and the genus of combination
Property kind is also not necessarily limited to two, it is also possible to be three or more, thus mapping relations there are multiple.
In one embodiment, mapping relations have different priority, are searching according to customer attribute information
During corresponding mapping relations, only obtain the mapping relations that priority is the highest.Priority can be by user and sets
Put, it is also possible to be system default.Such as, user setup is that role is preferential, i.e. corresponding the reflecting of role attribute
The priority penetrating relation is the highest, then the mapping relations of acquisition are the mapping relations that role attribute is corresponding.When with
Family change is arranged, and uses the age preferential, and the mapping relations priority that i.e. age attribute is corresponding is the highest, that
The mapping relations obtained are the mapping relations that age attribute is corresponding.
Step S130, obtains the page address to be visited of user's request, and obtaining according to mapping relations please with user
The personal page address that the page address to be visited asked is corresponding.
Concrete, according to the page address to be visited of request, search in default mapping relations and wait to visit with this
Ask the personal page address that page address is corresponding.Such as, the address to be visited of the request of acquisition is
Http:// www.sample-site.com/index.html, the mapping relations of acquisition are the mapping corresponding to age attribute
Relation, if age of user was more than 40 years old, then the personal page address of user is age/old/index.html.
In one embodiment, also can obtain the page corresponding to personal page address and show.
While display personal page, the address field of browser shows page address to be visited.Example
As, user asks to access webpage http://www.sample-site.com/index.html, gets user property
Information is to be more than 40 years old at the age, then the individualized webpage returned is the page that age/old/index.html is corresponding,
And in address field, it is shown that http://www.sample-site.com/index.html, i.e. on the ground of browser
Hurdle, location does not show customer attribute information, and for user, its page actually seen is corresponding user
The page that the personal page address of attribute information is corresponding, therefore can improve safety.
The detailed process of the above-mentioned method realizing page access is described below in conjunction with a concrete example:
In this example, page address to be visited is: http://www.sample-site.com/index.html, in advance
It is provided with the mapping relations of this page address to be visited and individualized webpage address as shown in Table 1 and Table 2.
The account of user is zhangsan, and the age in customer attribute information is 41 years old.User setup preferential
Level is that the priority at age is the highest.After user logs in, the page address that request accesses is:
http://www.sample-site.com/index.html.The mapping relations that server obtains according to customer attribute information
For the mapping relations corresponding with age attribute, according to the mapping relations chosen and customer attribute information, obtain
Personal page address is: age/old/index.html, is returned to by the page corresponding for this personal page address
Browser.On the address field of browser, the page address of display is then:
Http:// www.sample-site.com/index.html, actual displaying is personal page for a user,
Therefore give user's to feel it is the page to be visited i.e. personal page.User may also set up the preferential of role attribute
Level is the highest, then obtain the mapping relations that role attribute is corresponding, and obtain corresponding personalization according to mapping relations
Page address, thus giving the page of display is the personal page meeting user role.
Preferably, obtain outside the mapping relations that priority is the highest according to customer attribute information, also can obtain other
The mapping relations that predetermined number priority is second highest, and obtain the personal page address in these mapping relations,
These personal page addresses can be presented on the page being shown to user with the form of hyperlink, as station
Interior navigation.So, except being the attribute display individualized webpage that priority is the highest according to user setup, use
Family can also be rapidly introduced into by the hyperlink on webpage in other personal page so that user operation
More convenient.
As in figure 2 it is shown, in another embodiment, a kind of method realizing page access, including following step
Step S210, receives customer attribute information and accessing page request.
Before accession page, user can register in advance on website, and after having registered, server obtains
Take customer attribute information, customer attribute information and checking information are stored in data base.Customer attribute information
Age, authority, affiliated tissue, sex and role etc. including user.
Concrete, user can be by the login interface login service device of browser, and browser is according to user operation
Obtaining the accessing page request of user, and accessing page request is sent to server, server receives this page
Face access request, and from data base, the customer attribute information of correspondence is got according to ID.
Step S220, it may be judged whether there are mapping relations, the most then enter step S230, otherwise, enter
Step S260.
Step S230, obtains the page address to be visited and personal page ground preset according to customer attribute information
The mapping relations of location.
Concrete, in one embodiment, page address to be visited and personal page address can be pre-set
Mapping relations, these mapping relations corresponding with customer attribute information storage, i.e. the different types of attribute of user can
Corresponding different mapping relations, and in different mapping relations, page address to be visited also can be corresponding different
Personal page address.Such as, the mapping relations that age attribute is corresponding are as shown in table 1.
Additionally, the attribute type of mapping relations and user can be relation one to one, it is also possible to be multiple
The corresponding mapping relations of the combinations of attributes of kind.Such as, mapping relations and role and age attribute
Combination correspondence, the corresponding relation of page address the most to be visited and personal page address and age and role two kinds
Customer attribute information is relevant.Concrete mapping relations are as shown in table 2.
It is appreciated that mapping relations can also be corresponding with other two kinds of combinations of attributes, and the genus of combination
Property kind is also not necessarily limited to two, it is also possible to be three or more, thus mapping relations there are multiple.
In one embodiment, mapping relations have different priority, are searching according to customer attribute information
During corresponding mapping relations, only obtain the mapping relations that priority is the highest.Priority can be by user and sets
Put, it is also possible to be system default.Such as, user setup is that role is preferential, i.e. corresponding the reflecting of role attribute
The priority penetrating relation is the highest, then the mapping relations of acquisition are the mapping relations that role attribute is corresponding.When with
Family change is arranged, and uses the age preferential, and the mapping relations priority that i.e. age attribute is corresponding is the highest, that
The mapping relations obtained are the mapping relations that age attribute is corresponding.
Step S240, obtains the page address to be visited of user's request, and obtaining according to mapping relations please with user
The personal page address that the page address to be visited asked is corresponding.
Concrete, according to the page address to be visited of request, search in default mapping relations and wait to visit with this
Ask the personal page address that page address is corresponding.Such as, the address to be visited of the request of acquisition is
Http:// www.sample-site.com/index.html, the mapping relations of acquisition are the mapping corresponding to age attribute
Relation, if age of user was more than 40 years old, then the personal page address of user is age/old/index.html.
Step S250, it is judged that whether the page corresponding to personal page address exists, if it is not, then enter step
S260。
Step S260, obtains the public page address preset as personal page address.
The public page corresponding to public page address shows popular content, when not having and customer attribute information
Corresponding mapping relations, or when the page corresponding to the personal page address of user is the most found, obtain public affairs
It is total to the page corresponding to page address and is shown to user.
In one embodiment, also can obtain the page corresponding to personal page address and show, in display
While the property page, the address field of browser shows page address to be visited.Such as, user's request
Accessing webpage http://www.sample-site.com/index.html, it is older for getting customer attribute information
In 40 years old, then the individualized webpage returned was the page that age/old/index.html is corresponding, and in address field
It is shown that http://www.sample-site.com/index.html, i.e. the most aobvious in the address field of browser
Show customer attribute information, and for user, its page actually seen is the individual of corresponding customer attribute information
The page that property page address is corresponding, therefore can improve safety.
As it is shown on figure 3, the present invention also provides for a kind of system 100 realizing page access, including receiver module 111,
Mapping relations acquisition module 113, page address acquisition module 115.
Receiver module 111 is used for receiving customer attribute information and accessing page request.
Before accession page, user can register in advance on website, and after having registered, server obtains
Take customer attribute information, customer attribute information and checking information are stored in data base.Customer attribute information
Age, authority, affiliated tissue, sex and role etc. including user.
Concrete, user can be by the login interface login service device of browser, and browser is according to user operation
Obtaining the accessing page request of user, and accessing page request is sent to server, server receives this page
Face access request, and from data base, the customer attribute information of correspondence is got according to ID.
Mapping relations acquisition module 113 for obtaining the page address to be visited preset according to customer attribute information
Mapping relations with personal page address.
Concrete, in one embodiment, page address to be visited and personal page address can be pre-set
Mapping relations, these mapping relations corresponding with customer attribute information storage, i.e. the different types of attribute of user can
Corresponding different mapping relations, and in different mapping relations, page address to be visited also can be corresponding different
Personal page address.Such as, the mapping relations that age attribute is corresponding are as shown in table 1.
Additionally, the attribute type of mapping relations and user can be relation one to one, it is also possible to be multiple
The corresponding mapping relations of the combinations of attributes of kind.Such as, mapping relations and role and age attribute
Combination correspondence, the corresponding relation of page address the most to be visited and personal page address and age and role two kinds
Customer attribute information is relevant.Concrete mapping relations are as shown in table 2.
It is appreciated that mapping relations can also be corresponding with other two kinds of combinations of attributes, and the genus of combination
Property kind is also not necessarily limited to two, it is also possible to be three or more, thus mapping relations there are multiple.
In one embodiment, mapping relations have different priority, and mapping relations acquisition module 113 exists
When searching corresponding mapping relations according to customer attribute information, only obtain the mapping relations that priority is the highest.Excellent
First level can be by user setup, it is also possible to is system default.Such as, user setup is that role is preferential,
The i.e. priority of the mapping relations that role attribute is corresponding is the highest, then mapping relations acquisition module 113 obtains
Mapping relations are the mapping relations that role attribute is corresponding.When user changes setting, use the age preferential,
The mapping relations priority that i.e. age attribute is corresponding is the highest, then what mapping relations acquisition module 113 obtained reflects
The relation of penetrating is the mapping relations that age attribute is corresponding.
Page address acquisition module 115, for obtaining the page address to be visited of user's request, closes according to mapping
System obtains the personal page address corresponding with the page address to be visited of user's request.
Concrete, page address acquisition module 115, according to the page address to be visited of request, reflects default
Penetrate the personal page address that in relation, lookup is corresponding with this page address to be visited.Such as, the request of acquisition
Address to be visited be http://www.sample-site.com/index.html, mapping relations acquisition module 113
The mapping relations obtained are the mapping relations corresponding to age attribute, if age of user was more than 40 years old, then use
The personal page address at family is age/old/index.html.
In one embodiment, can also be used with browser and obtain the page corresponding to personal page address and show,
Browser, while display personal page, shows page address to be visited in the address field of browser 1.
Such as, user asks to access webpage http://www.sample-site.com/index.html, gets user and belongs to
Property information is to be more than 40 years old at the age, then the individualized webpage returned is the page that age/old/index.html is corresponding,
And in address field, it is shown that http://www.sample-site.com/index.html, i.e. on the ground of browser
Hurdle, location does not show customer attribute information, and for user, its page actually seen is corresponding user
The page that the personal page address of attribute information is corresponding, therefore can improve safety.
As shown in Figure 4, in another embodiment, it is achieved the system 100 of page access also includes the first judgement
Module 117 and the second judge module 119.
First judge module 117 is used for judging whether mapping relations, the most then notice mapping relations obtain
Delivery block 113 obtains the page address to be visited and personal page address preset according to customer attribute information
Mapping relations, otherwise, Notifications page address acquisition module 115 obtains the public page address preset as individual
Property page address.
Second judge module 119 for judging whether the page corresponding to personal page address exists, if it is not,
Then Notifications page address acquisition module 115 obtains the public page address preset as personal page address.
The above-mentioned method and system realizing page access, the attribute information and the page access that first receive user please
Ask, and obtain the mapping relations of the page address to be visited and personal page address preset.Then can basis
Mapping relations and page address to be visited obtain corresponding personal page address.User when accession page,
Need not input different page addresses, but said system automatically obtains personalization according to its attribute information
Page address, this avoid user needs to remember different page addresses.Therefore, during user to access pages
Convenient.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed,
But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area
Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and
Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended
Claim is as the criterion.